01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10: package org.mmbase.util.transformers;
11:
12: import java.io.InputStream;
13: import java.io.OutputStream;
14:
15: /**
16: * Interface for transformations.
17: *
18: * @author Michiel Meeuwissen
19: */
20:
21: public interface ByteTransformer extends Transformer {
22:
23: public OutputStream transform(InputStream r, OutputStream o);
24:
25: public OutputStream transformBack(InputStream r, OutputStream o);
26:
27: public byte[] transform(byte[] r);
28:
29: public byte[] transformBack(byte[] r);
30: }
|