public class BASE64EncodingAlgorithm extends BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener
SPACE_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, removeWhitespace
public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException
EncodingAlgorithmException
public final Object decodeFromInputStream(InputStream s) throws IOException
IOException
public void encodeToOutputStream(Object data, OutputStream s) throws IOException
IOException
public 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 BuiltInEncodingAlgorithm
EncodingAlgorithmException
public int getOctetLengthFromPrimitiveLength(int primitiveLength)
getOctetLengthFromPrimitiveLength
in class BuiltInEncodingAlgorithm
public final void encodeToBytes(Object array, int astart, int alength, byte[] b, int start)
encodeToBytes
in class BuiltInEncodingAlgorithm
public final void convertToCharacters(byte[] data, int offset, int length, StringBuffer s)
Copyright © 2019 Oracle Corpration. All rights reserved.