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, readFully
private static final char[] pem_array
protected int bytesPerAtom()
bytesPerAtom
in class CharacterEncoder
protected int bytesPerLine()
bytesPerLine
in class CharacterEncoder
protected void encodeAtom(OutputStream outStream, byte[] data, int offset, int len) throws IOException
encodeAtom
in class CharacterEncoder
IOException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.