Class 
Use 
SUMMARY: NESTED | FIELD | CONSTR | METHOD      DETAIL: FIELD | CONSTR | METHOD
FlexDoc/Javadoc 2.0
Demo Java Doc

java.base / java.util
Class Base64
java.lang.Object
  java.util.Base64

public class Base64
extends Object
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 null argument to a method of this class will cause a NullPointerException to be thrown.

Since:
1.8
Author:
Xueming Shen

Nested Class Summary
static class
This class implements a decoder for decoding byte data using the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.
static class
This class implements an encoder for encoding byte data using the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.
Method Summary
Returns a Base64.Decoder that decodes using the Basic type base64 encoding scheme.
Returns a Base64.Encoder that encodes using the Basic type base64 encoding scheme.
Returns a Base64.Decoder that decodes using the MIME type base64 decoding scheme.
Returns a Base64.Encoder that encodes using the MIME type base64 encoding scheme.
getMimeEncoder(int lineLength, byte[] lineSeparator)
Returns a Base64.Encoder that encodes using the MIME type base64 encoding scheme with specified line length and line separators.
Returns a Base64.Decoder that decodes using the URL and Filename safe type base64 encoding scheme.
Returns a Base64.Encoder that encodes using the URL and Filename safe type base64 encoding scheme.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail
getEncoder
public static Base64.Encoder getEncoder
()
Returns a Base64.Encoder that encodes using the Basic type base64 encoding scheme.
Returns:
A Base64 encoder.

getUrlEncoder
public static Base64.Encoder getUrlEncoder
()
Returns a Base64.Encoder that encodes using the URL and Filename safe type base64 encoding scheme.
Returns:
A Base64 encoder.

getMimeEncoder
public static Base64.Encoder getMimeEncoder
()
Returns a Base64.Encoder that encodes using the MIME type base64 encoding scheme.
Returns:
A Base64 encoder.

getMimeEncoder
public static Base64.Encoder getMimeEncoder
(int lineLength,
 byte[] lineSeparator)
Returns a Base64.Encoder that encodes using the MIME type base64 encoding scheme with specified line length and line separators.
Parameters:
lineLength - the length of each output line (rounded down to nearest multiple of 4). If the rounded down line length is not a positive value, the output will not be separated in lines
lineSeparator - the line separator for each output line
Returns:
A Base64 encoder.
Throws:
IllegalArgumentException - if lineSeparator includes any character of "The Base64 Alphabet" as specified in Table 1 of RFC 2045.

getDecoder
public static Base64.Decoder getDecoder
()
Returns a Base64.Decoder that decodes using the Basic type base64 encoding scheme.
Returns:
A Base64 decoder.

getUrlDecoder
public static Base64.Decoder getUrlDecoder
()
Returns a Base64.Decoder that decodes using the URL and Filename safe type base64 encoding scheme.
Returns:
A Base64 decoder.

getMimeDecoder
public static Base64.Decoder getMimeDecoder
()
Returns a Base64.Decoder that decodes using the MIME type base64 decoding scheme.
Returns:
A Base64 decoder.

 Class 
Use 
SUMMARY: NESTED | FIELD | CONSTR | METHOD      DETAIL: FIELD | CONSTR | METHOD
FlexDoc/Javadoc 2.0
Demo Java Doc

Java API documentation generated with FlexDoc/Javadoc 2.0 using JavadocClassic 3.0 template set.
FlexDoc/Javadoc is a template-driven programming tool for rapid development of any Javadoc-based Java API documentation generators (i.e. doclets). If you need to customize your Javadoc without writing a full-blown doclet from scratch, FlexDoc/Javadoc may be the only tool able to help you! Find out more at www.flexdoc.xyz