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: import java.io.Reader;
15: import java.io.Writer;
16:
17: /**
18: * Interface for transformations.
19: *
20: * @author Michiel Meeuwissen
21: */
22:
23: public interface ByteToCharTransformer extends Transformer {
24:
25: public Writer transform(InputStream r);
26:
27: public Writer transform(InputStream r, Writer w);
28:
29: public OutputStream transformBack(Reader r);
30:
31: public OutputStream transformBack(Reader r, OutputStream o);
32:
33: public String transform(byte[] r);
34:
35: public byte[] transformBack(String r);
36:
37: }
|