public class BASE64Encoder extends CharacterEncoder
CharacterEncoder| Modifier and Type | Field and Description |
|---|---|
private static char[] |
pem_array
This array maps the characters to their 6 bit values
|
pStream| Constructor and Description |
|---|
BASE64Encoder() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
bytesPerAtom()
this class encodes three bytes per atom.
|
protected int |
bytesPerLine()
this class encodes 57 bytes per line.
|
protected void |
encodeAtom(OutputStream outStream,
byte[] data,
int offset,
int len)
encodeAtom - Take three bytes of input and encode it as 4
printable characters.
|
encode, encode, encode, encodeBuffer, encodeBuffer, encodeBuffer, encodeBufferPrefix, encodeBufferSuffix, encodeLinePrefix, encodeLineSuffix, readFullyprivate static final char[] pem_array
protected int bytesPerAtom()
bytesPerAtom in class CharacterEncoderprotected int bytesPerLine()
bytesPerLine in class CharacterEncoderprotected void encodeAtom(OutputStream outStream, byte[] data, int offset, int len) throws IOException
encodeAtom in class CharacterEncoderIOExceptionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.