IO Extension Package
by Java developer Christian Ey
This package provides additional classes for input/output.
Contained are filter streams for Base64 encoding and
decoding. Those filter streams can be plugged on top of another
stream to encode/decode the data before reaching the underlying
stream:
de.ceyco.io.Base64DecoderInputStream A filter
input stream that decodes data on the fly from BASE64
format as specified in the
MIME
specification.
de.ceyco.io.Base64EncoderOutputStream A filter
output stream that encodes data on the fly into BASE64
format as specified in the
MIME
specification.
It also contains two streams called
StringBufferInputStream and
StringBufferOutputStream. They fill a gap in Java's
standard library, once filled by the class
java.io.StringBufferInputStream. The original Java class
is now deprecated, because it does not provide proper
character
encoding in translating characters into bytes. The two classes I
developed do support character encoding.
de.ceyco.io.StringBufferInputStream gets
initialized using a regular String which then can be
read from the stream using the specified character encoding.
de.ceyco.io.StringBufferOutputStream on the other
hand stores bytes written into it and provides them as a
String.
Feel free to use them under the
Lesser GPL.
|