org.apache.commons.codec.binary

Class Base64

Implemented Interfaces:
BinaryDecoder, BinaryEncoder, Decoder, Encoder

public class Base64
extends java.lang.Object
implements BinaryEncoder, BinaryDecoder

Provides Base64 encoding and decoding as defined by RFC 2045.

This class implements section 6.8. Base64 Content-Transfer-Encoding from RFC 2045 Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies by Freed and Borenstein.

Version:
$Id: Base64.java,v 1.20 2004/05/24 00:21:24 ggregory Exp $
Author:
Apache Software Foundation
Since:
1.0-dev
See Also:
RFC 2045

Field Summary

(package private) static int
BASELENGTH
The base length.
(package private) static byte[]
CHUNK_SEPARATOR
Chunk separator per RFC 2045 section 2.1.
(package private) static int
CHUNK_SIZE
Chunk size per RFC 2045 section 6.8.
(package private) static int
EIGHTBIT
Used to calculate the number of bits in a byte.
(package private) static int
FOURBYTE
Used to get the number of Quadruples.
(package private) static int
LOOKUPLENGTH
Lookup length.
(package private) sta