org.das2.util.Base64

This class consists exclusively of static methods for obtaining encoders and decoders for the Base64 encoding scheme. The implementation of this class supports the following types of Base64 as specified in RFC 4648 and RFC 2045.

Unless otherwise noted, passing a {@code null} argument to a method of this class will cause a {@link java.lang.NullPointerException NullPointerException} to be thrown.


getDecoder

getDecoder( ) → Decoder

Returns a {@link Decoder} that decodes using the Basic type base64 encoding scheme.

Returns:

A Base64 decoder.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getEncoder

getEncoder( ) → Encoder

Returns a {@link Encoder} that encodes using the Basic type base64 encoding scheme.

Returns:

A Base64 encoder.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getMimeDecoder

getMimeDecoder( ) → Decoder

Returns a {@link Decoder} that decodes using the MIME type base64 decoding scheme.

Returns:

A Base64 decoder.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getMimeEncoder

getMimeEncoder( ) → Encoder

Returns a {@link Encoder} that encodes using the MIME type base64 encoding scheme.

Returns:

A Base64 encoder.

[search for examples] [view on GitHub] [view on old javadoc] [view source]

getMimeEncoder( int lineLength, byte[] lineSeparator ) → Encoder

getUrlDecoder

getUrlDecoder( ) → Decoder

Returns a {@link Decoder} that decodes using the URL and Filename safe type base64 encoding scheme.

Returns:

A Base64 decoder.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getUrlEncoder

getUrlEncoder( ) → Encoder

Returns a {@link Encoder} that encodes using the URL and Filename safe type base64 encoding scheme.

Returns:

A Base64 encoder.

[search for examples] [view on GitHub] [view on old javadoc] [view source]