Package netscape.ldap.util
Class MimeBase64Encoder
- java.lang.Object
-
- netscape.ldap.util.MimeEncoder
-
- netscape.ldap.util.MimeBase64Encoder
-
- All Implemented Interfaces:
java.io.Serializable
public final class MimeBase64Encoder extends MimeEncoder
Implements a plaintext -> Base64 encoder.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MimeBase64Encoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
eof(ByteBuf out)
Tell the base64 encoder that no more input data will be forthcoming.void
translate(ByteBuf in, ByteBuf out)
Given a sequence of input bytes, produces a sequence of output bytes using the base64 encoding.
-
-
-
Method Detail
-
translate
public final void translate(ByteBuf in, ByteBuf out)
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
public final void eof(ByteBuf out)
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
-
-