1package org.bouncycastle.cms;
2
3import java.io.IOException;
4import java.io.OutputStream;
5
6/**
7 * Use CMSTypedData instead of this. See CMSProcessableFile/ByteArray for defaults.
8 */
9public interface CMSProcessable
10{
11    /**
12     * generic routine to copy out the data we want processed - the OutputStream
13     * passed in will do the handling on it's own.
14     * <p>
15     * Note: this routine may be called multiple times.
16     */
17    public void write(OutputStream out)
18        throws IOException, CMSException;
19
20    public Object getContent();
21}
22