public class Encoder
extends java.lang.Object
| Constructor | Description |
|---|---|
Encoder() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
encode(byte[] aBuffer) |
A 'streamless' version of encode that simply takes a buffer of
bytes and returns a string containing the encoded buffer.
|
void |
encode(byte[] aBuffer,
java.io.OutputStream aStream) |
Encode the buffer in aBuffer and write the encoded
result to the OutputStream aStream.
|
void |
encode(java.io.InputStream inStream,
java.io.OutputStream outStream) |
Encode bytes from the input stream, and write them as text characters
to the output stream.
|
java.lang.String |
encodeBuffer(byte[] aBuffer) |
A 'streamless' version of encode that simply takes a buffer of
bytes and returns a string containing the encoded buffer.
|
void |
encodeBuffer(byte[] aBuffer,
java.io.OutputStream aStream) |
Encode the buffer in aBuffer and write the encoded
result to the OutputStream aStream.
|
void |
encodeBuffer(java.io.InputStream inStream,
java.io.OutputStream outStream) |
Encode bytes from the input stream, and write them as text characters
to the output stream.
|
public void encode(java.io.InputStream inStream,
java.io.OutputStream outStream)
throws java.io.IOException
inStream - input streamoutStream - output streamjava.io.IOException - An error has occured while encodingpublic void encode(byte[] aBuffer,
java.io.OutputStream aStream)
throws java.io.IOException
aBuffer - input bufferaStream - output streamjava.io.IOException - An error has occured while encodingpublic java.lang.String encode(byte[] aBuffer)
aBuffer - input bufferpublic void encodeBuffer(java.io.InputStream inStream,
java.io.OutputStream outStream)
throws java.io.IOException
inStream - input streamoutStream - output streamjava.io.IOException - An error has occured while encodingpublic void encodeBuffer(byte[] aBuffer,
java.io.OutputStream aStream)
throws java.io.IOException
aBuffer - input bufferaStream - output streamjava.io.IOException - An error has occured while encodingpublic java.lang.String encodeBuffer(byte[] aBuffer)
aBuffer - input buffer