Package netscape.ldap.util
Class MimeBase64Decoder
java.lang.Object
netscape.ldap.util.MimeEncoder
netscape.ldap.util.MimeBase64Decoder
- All Implemented Interfaces:
Serializable
Implements a plaintext -> Base64 encoder.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]
private static final byte
private static final byte[]
private static final byte
(package private) static final long
private byte[]
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate final void
private final void
decode_token
(ByteBuf out) final void
Tell the Base64 decoder that no more input data will be forthcoming.final void
Given a sequence of input bytes using the Base64 encoding, produces a sequence of unencoded output bytes.
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
token
private byte[] token -
bytes
private byte[] bytes -
token_length
private int token_length -
NUL
private static final byte NUL- See Also:
-
EOF
private static final byte EOF- See Also:
-
map
private static final byte[] map
-
-
Constructor Details
-
MimeBase64Decoder
public MimeBase64Decoder()
-
-
Method Details
-
decode_token
-
decode_final_token
-
translate
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.- Specified by:
translate
in classMimeEncoder
-
eof
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.- Specified by:
eof
in classMimeEncoder
-