public class BooleanEncodingAlgorithm extends BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener
SPACE_PATTERN
Constructor and Description |
---|
BooleanEncodingAlgorithm() |
Modifier and Type | Method and Description |
---|---|
Object |
convertFromCharacters(char[] ch,
int start,
int length) |
void |
convertToCharacters(Object data,
StringBuffer s) |
Object |
decodeFromBytes(byte[] b,
int start,
int length) |
void |
decodeFromBytesToBooleanArray(boolean[] bdata,
int bstart,
int blength,
byte[] b,
int start,
int length) |
Object |
decodeFromInputStream(InputStream s) |
void |
encodeToBytes(Object array,
int astart,
int alength,
byte[] b,
int start) |
void |
encodeToBytesFromBooleanArray(boolean[] array,
int astart,
int alength,
byte[] b,
int start) |
void |
encodeToOutputStream(Object data,
OutputStream s) |
int |
getOctetLengthFromPrimitiveLength(int primitiveLength) |
int |
getPrimtiveLengthFromOctetLength(int octetLength) |
int |
getPrimtiveLengthFromOctetLength(int octetLength,
int firstOctet) |
matchWhiteSpaceDelimnatedWords, removeWhitespace
public int getPrimtiveLengthFromOctetLength(int octetLength) throws EncodingAlgorithmException
getPrimtiveLengthFromOctetLength
in class BuiltInEncodingAlgorithm
EncodingAlgorithmException
public int getOctetLengthFromPrimitiveLength(int primitiveLength)
getOctetLengthFromPrimitiveLength
in class BuiltInEncodingAlgorithm
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 int getPrimtiveLengthFromOctetLength(int octetLength, int firstOctet) throws EncodingAlgorithmException
EncodingAlgorithmException
public final void decodeFromBytesToBooleanArray(boolean[] bdata, int bstart, int blength, byte[] b, int start, int length)
public void encodeToBytes(Object array, int astart, int alength, byte[] b, int start)
encodeToBytes
in class BuiltInEncodingAlgorithm
public void encodeToBytesFromBooleanArray(boolean[] array, int astart, int alength, byte[] b, int start)
Copyright © 2017 Oracle Corpration. All Rights Reserved.