public class ShortEncodingAlgorithm extends IntegerEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener
INT_MAX_CHARACTER_SIZE, INT_SIZE, LONG_MAX_CHARACTER_SIZE, LONG_SIZE, SHORT_MAX_CHARACTER_SIZE, SHORT_SIZE
SPACE_PATTERN
Constructor and Description |
---|
ShortEncodingAlgorithm() |
Modifier and Type | Method and Description |
---|---|
Object |
convertFromCharacters(char[] ch,
int start,
int length) |
void |
convertToCharacters(Object data,
StringBuffer s) |
void |
convertToCharactersFromShortArray(short[] sdata,
StringBuffer s) |
Object |
decodeFromBytes(byte[] b,
int start,
int length) |
void |
decodeFromBytesToShortArray(short[] sdata,
int istart,
byte[] b,
int start,
int length) |
Object |
decodeFromInputStream(InputStream s) |
short[] |
decodeFromInputStreamToShortArray(InputStream s) |
void |
encodeToBytes(Object array,
int astart,
int alength,
byte[] b,
int start) |
void |
encodeToBytesFromShortArray(short[] sdata,
int istart,
int ilength,
byte[] b,
int start) |
void |
encodeToOutputStream(Object data,
OutputStream s) |
void |
encodeToOutputStreamFromShortArray(short[] idata,
OutputStream s) |
short[] |
generateArrayFromList(List array) |
int |
getOctetLengthFromPrimitiveLength(int primitiveLength) |
int |
getPrimtiveLengthFromOctetLength(int octetLength) |
matchWhiteSpaceDelimnatedWords, removeWhitespace
public final 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 final void decodeFromBytesToShortArray(short[] sdata, int istart, byte[] b, int start, int length)
public final short[] decodeFromInputStreamToShortArray(InputStream s) throws IOException
IOException
public final void encodeToOutputStreamFromShortArray(short[] idata, OutputStream s) throws IOException
IOException
public final void encodeToBytes(Object array, int astart, int alength, byte[] b, int start)
encodeToBytes
in class BuiltInEncodingAlgorithm
public final void encodeToBytesFromShortArray(short[] sdata, int istart, int ilength, byte[] b, int start)
public final void convertToCharactersFromShortArray(short[] sdata, StringBuffer s)
public final short[] generateArrayFromList(List array)
Copyright © 2017 Oracle Corpration. All Rights Reserved.