public class BASE64EncodingAlgorithm extends BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListenerSPACE_PATTERN| Constructor and Description |
|---|
BASE64EncodingAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertFromCharacters(char[] ch,
int start,
int length) |
void |
convertToCharacters(byte[] data,
int offset,
int length,
StringBuffer s) |
void |
convertToCharacters(Object data,
StringBuffer s) |
Object |
decodeFromBytes(byte[] b,
int start,
int length) |
Object |
decodeFromInputStream(InputStream s) |
void |
encodeToBytes(Object array,
int astart,
int alength,
byte[] b,
int start) |
void |
encodeToOutputStream(Object data,
OutputStream s) |
int |
getOctetLengthFromPrimitiveLength(int primitiveLength) |
int |
getPrimtiveLengthFromOctetLength(int octetLength) |
matchWhiteSpaceDelimnatedWords, removeWhitespacepublic final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException
EncodingAlgorithmExceptionpublic final Object decodeFromInputStream(InputStream s) throws IOException
IOExceptionpublic void encodeToOutputStream(Object data, OutputStream s) throws IOException
IOExceptionpublic final Object convertFromCharacters(char[] ch, int start, int length)
public final void convertToCharacters(Object data, StringBuffer s)
public final int getPrimtiveLengthFromOctetLength(int octetLength)
throws EncodingAlgorithmException
getPrimtiveLengthFromOctetLength in class BuiltInEncodingAlgorithmEncodingAlgorithmExceptionpublic int getOctetLengthFromPrimitiveLength(int primitiveLength)
getOctetLengthFromPrimitiveLength in class BuiltInEncodingAlgorithmpublic final void encodeToBytes(Object array, int astart, int alength, byte[] b, int start)
encodeToBytes in class BuiltInEncodingAlgorithmpublic final void convertToCharacters(byte[] data,
int offset,
int length,
StringBuffer s)
Copyright © 2012 Oracle Corpration. All Rights Reserved.