Base64.Encoder

public static class Base64.Encoder extends Object

This class implements an encoder for encoding byte data using the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.

Instances of Base64.Encoder class are safe for use by multiple concurrent threads.

Unless otherwise noted, passing a null argument to a method of this class will cause a NullPointerException to be thrown.

See Also

Public Method Summary

int
encode(byte[] src, byte[] dst)
Encodes all bytes from the specified byte array using the Base64 encoding scheme, writing the resulting bytes to the given output byte array, starting at offset 0.
byte[]
encode(byte[] src)
Encodes all bytes from the specified byte array into a newly-allocated byte array using the Base64 encoding scheme.
ByteBuffer
encode(ByteBuffer buffer)
Encodes all remaining bytes from the specified byte buffer into a newly-allocated ByteBuffer using the Base64 encoding scheme.
String
encodeToString(byte[] src)
Encodes the specified byte array into a String using the Base64 encoding scheme.
Base64.Encoder
withoutPadding()
Returns an encoder instance that encodes equivalently to this one, but without adding any padding character at the end of the encoded byte data.
OutputStream
wrap(OutputStream os)
Wraps an output stream for encoding byte data using the Base64 encoding scheme.

Inherited Method Summary