netscape.ldap.util
Class MimeBase64Decoder
- java.io.Serializable
public final class MimeBase64Decoder
Implements a plaintext -> Base64 encoder.
void | eof(ByteBuf out) - Tell the Base64 decoder that no more input data will be forthcoming.
|
void | translate(ByteBuf in, ByteBuf out) - Given a sequence of input bytes using the Base64 encoding, produces a
sequence of unencoded output bytes.
|
eof
public final void eof(ByteBuf out)
Tell the Base64 decoder that no more input data will be forthcoming.
This may result in output, as a result of flushing the internal buffer.
This object must not be used again after calling eof(). If there are
bytes in `out' already, the new bytes are appended, so the caller should
do `out.setLength(0)' first if that's desired.
- eof in interface MimeEncoder
translate
public final void translate(ByteBuf in,
ByteBuf out)
Given a sequence of input bytes using the Base64 encoding, produces a
sequence of unencoded output bytes. Note that some (small) amount of
buffering may be necessary, if the input byte stream didn't fall on an
appropriate boundary. If there are bytes in `out' already, the new
bytes are appended, so the caller should do `out.setLength(0)' first
if that's desired.
- translate in interface MimeEncoder