ewe.io
Class Base64Codec
java.lang.Object
ewe.util.Errorable
ewe.io.Base64Codec
- Direct Known Subclasses:
- Base64Decoder, Base64Encoder
- public class Base64Codec
- extends Errorable
|
Method Summary |
int |
charToByte(char ch)
|
protected byte[] |
closeEncoding()
|
ByteArray |
decode(byte[] chars,
int offset,
int length,
ByteArray dest)
|
protected int |
decode4(char[] chars,
int charOffset,
byte[] dest,
int destOffset)
This decodes four characters into between 1 to 3 bytes. |
ByteArray |
encode(byte[] bytes,
int offset,
int length,
ByteArray dest)
|
protected int |
encode3(byte[] bytes,
int offset,
int length,
byte[] dest,
int destOffset)
|
encodingChars
public static final String encodingChars
- This returns the six bit value of the character. It returns -1 if the
character is invalid.
- See Also:
- Constant Field Values
Base64Codec
public Base64Codec()
charToByte
public int charToByte(char ch)
decode4
protected int decode4(char[] chars,
int charOffset,
byte[] dest,
int destOffset)
- This decodes four characters into between 1 to 3 bytes. The four characters MUST
be valid or '=' signs (for the end of stream padding).
decode
public ByteArray decode(byte[] chars,
int offset,
int length,
ByteArray dest)
encode3
protected int encode3(byte[] bytes,
int offset,
int length,
byte[] dest,
int destOffset)
encode
public ByteArray encode(byte[] bytes,
int offset,
int length,
ByteArray dest)
closeEncoding
protected byte[] closeEncoding()