1 package org.bouncycastle.cms; 2 3 import java.io.IOException; 4 import java.io.OutputStream; 5 6 /** 7 * Use CMSTypedData instead of this. See CMSProcessableFile/ByteArray for defaults. 8 */ 9 public 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 */ write(OutputStream out)17 public void write(OutputStream out) 18 throws IOException, CMSException; 19 getContent()20 public Object getContent(); 21 } 22