package aalg.crypto;

import java.io.IOException;
import java.io.OutputStream;

/**
 * Filter that processes data written to source stream and writes the result into target stream.
 * @author Ing. Petr Ležák
 */
public interface IOutputStreamFilter {
	/**
	 * Returns stream where input data should be written.
	 * @return stream source stream
	 */
	public OutputStream getSourceStream() throws IOException;
	
	/**
	 * Returns stream where filtered data will be written.
	 * @return stream target stream
	 */
	public OutputStream getTargetStream() throws IOException;
}
