Package com.twelvemonkeys.io.enc
Interface Encoder
-
- All Known Implementing Classes:
Base64Encoder
,LZWEncoder
,PackBitsEncoder
,RLEEncoder
public interface Encoder
Interface for encoders. AnEncoder
may be used with anEncoderStream
, to perform on-the-fly encoding to anOutputStream
.Important note: Encoder implementations are typically not synchronized.
- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/io/enc/Encoder.java#2 $
- See Also:
Decoder
,EncoderStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
encode(java.io.OutputStream stream, java.nio.ByteBuffer buffer)
Encodes up tobuffer.remaining()
bytes into the given input stream, from the given buffer.
-
-
-
Method Detail
-
encode
void encode(java.io.OutputStream stream, java.nio.ByteBuffer buffer) throws java.io.IOException
Encodes up tobuffer.remaining()
bytes into the given input stream, from the given buffer.- Parameters:
stream
- the output stream to encode data tobuffer
- buffer to read data from- Throws:
java.io.IOException
- if an I/O error occurs
-
-