public class LongEncodingAlgorithm extends IntegerEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListenerINT_MAX_CHARACTER_SIZE, INT_SIZE, LONG_MAX_CHARACTER_SIZE, LONG_SIZE, SHORT_MAX_CHARACTER_SIZE, SHORT_SIZESPACE_PATTERN| Constructor and Description |
|---|
LongEncodingAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertFromCharacters(char[] ch,
int start,
int length) |
void |
convertToCharacters(Object data,
StringBuffer s) |
void |
convertToCharactersFromLongArray(long[] ldata,
StringBuffer s) |
Object |
decodeFromBytes(byte[] b,
int start,
int length) |
void |
decodeFromBytesToLongArray(long[] ldata,
int istart,
byte[] b,
int start,
int length) |
Object |
decodeFromInputStream(InputStream s) |
long[] |
decodeFromInputStreamToIntArray(InputStream s) |
void |
encodeToBytes(Object array,
int astart,
int alength,
byte[] b,
int start) |
void |
encodeToBytesFromLongArray(long[] ldata,
int lstart,
int llength,
byte[] b,
int start) |
void |
encodeToOutputStream(Object data,
OutputStream s) |
void |
encodeToOutputStreamFromLongArray(long[] ldata,
OutputStream s) |
long[] |
generateArrayFromList(List array) |
int |
getOctetLengthFromPrimitiveLength(int primitiveLength) |
int |
getPrimtiveLengthFromOctetLength(int octetLength) |
matchWhiteSpaceDelimnatedWords, removeWhitespacepublic int getPrimtiveLengthFromOctetLength(int octetLength)
throws EncodingAlgorithmException
getPrimtiveLengthFromOctetLength in class BuiltInEncodingAlgorithmEncodingAlgorithmExceptionpublic int getOctetLengthFromPrimitiveLength(int primitiveLength)
getOctetLengthFromPrimitiveLength in class BuiltInEncodingAlgorithmpublic 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 Object convertFromCharacters(char[] ch, int start, int length)
public void convertToCharacters(Object data, StringBuffer s)
public final void decodeFromBytesToLongArray(long[] ldata,
int istart,
byte[] b,
int start,
int length)
public final long[] decodeFromInputStreamToIntArray(InputStream s) throws IOException
IOExceptionpublic final void encodeToOutputStreamFromLongArray(long[] ldata,
OutputStream s)
throws IOException
IOExceptionpublic final void encodeToBytes(Object array, int astart, int alength, byte[] b, int start)
encodeToBytes in class BuiltInEncodingAlgorithmpublic final void encodeToBytesFromLongArray(long[] ldata,
int lstart,
int llength,
byte[] b,
int start)
public final void convertToCharactersFromLongArray(long[] ldata,
StringBuffer s)
public final long[] generateArrayFromList(List array)
Copyright © 2012 Oracle Corpration. All Rights Reserved.