Package netscape.ldap.util
Class MimeBase64Encoder
java.lang.Object
netscape.ldap.util.MimeEncoder
netscape.ldap.util.MimeBase64Encoder
- All Implemented Interfaces:
Serializable
Implements a plaintext -> Base64 encoder.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private static final byte[]
private byte[]
private int
private static final char[]
(package private) static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate final void
private final void
final void
Tell the base64 encoder that no more input data will be forthcoming.private final void
flush_line
(ByteBuf out) final void
Given a sequence of input bytes, produces a sequence of output bytes using the base64 encoding.
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
buf
private int buf -
buf_bytes
private int buf_bytes -
line
private byte[] line -
line_length
private int line_length -
crlf
private static final byte[] crlf -
map
private static final char[] map
-
-
Constructor Details
-
MimeBase64Encoder
public MimeBase64Encoder()
-
-
Method Details
-
encode_token
private final void encode_token() -
encode_partial_token
private final void encode_partial_token() -
flush_line
-
translate
Given a sequence of input bytes, produces a sequence of output bytes using the base64 encoding. 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 encoder 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
-