@Alpha public interface StreamCodec
| Modifier and Type | Method and Description |
|---|---|
InputStream |
decodeInputStream(InputStream origStream)
Wrap a bytestream and return a new stream that will decode
any bytes from origStream when read from.
|
OutputStream |
encodeOutputStream(OutputStream origStream)
Wrap a bytestream and return a new stream that encodes the bytes written to it and writes
the result into origStream
|
String |
getTag()
Get tag/file extension associated with encoder.
|
OutputStream encodeOutputStream(OutputStream origStream) throws IOException
origStream - Stream to wrapIOExceptionInputStream decodeInputStream(InputStream origStream) throws IOException
origStream - Stream to wrapIOExceptionString getTag()