EncodingAlgorithmpublic class IntEncodingAlgorithm extends IntegerEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListenerSPACE_PATTERNINT_MAX_CHARACTER_SIZE, INT_SIZE, LONG_MAX_CHARACTER_SIZE, LONG_SIZE, SHORT_MAX_CHARACTER_SIZE, SHORT_SIZE| Constructor | Description |
|---|---|
IntEncodingAlgorithm() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
convertFromCharacters(char[] ch,
int start,
int length) |
|
void |
convertToCharacters(java.lang.Object data,
java.lang.StringBuffer s) |
|
void |
convertToCharactersFromIntArray(int[] idata,
java.lang.StringBuffer s) |
|
java.lang.Object |
decodeFromBytes(byte[] b,
int start,
int length) |
|
void |
decodeFromBytesToIntArray(int[] idata,
int istart,
byte[] b,
int start,
int length) |
|
java.lang.Object |
decodeFromInputStream(java.io.InputStream s) |
|
int[] |
decodeFromInputStreamToIntArray(java.io.InputStream s) |
|
void |
encodeToBytes(java.lang.Object array,
int astart,
int alength,
byte[] b,
int start) |
|
void |
encodeToBytesFromIntArray(int[] idata,
int istart,
int ilength,
byte[] b,
int start) |
|
void |
encodeToOutputStream(java.lang.Object data,
java.io.OutputStream s) |
|
void |
encodeToOutputStreamFromIntArray(int[] idata,
java.io.OutputStream s) |
|
int[] |
generateArrayFromList(java.util.List array) |
|
int |
getOctetLengthFromPrimitiveLength(int primitiveLength) |
|
int |
getPrimtiveLengthFromOctetLength(int octetLength) |
matchWhiteSpaceDelimnatedWords, removeWhitespacepublic final int getPrimtiveLengthFromOctetLength(int octetLength)
throws EncodingAlgorithmException
getPrimtiveLengthFromOctetLength in class BuiltInEncodingAlgorithmEncodingAlgorithmExceptionpublic int getOctetLengthFromPrimitiveLength(int primitiveLength)
getOctetLengthFromPrimitiveLength in class BuiltInEncodingAlgorithmpublic final java.lang.Object decodeFromBytes(byte[] b,
int start,
int length)
throws EncodingAlgorithmException
EncodingAlgorithmExceptionpublic final java.lang.Object decodeFromInputStream(java.io.InputStream s)
throws java.io.IOException
java.io.IOExceptionpublic void encodeToOutputStream(java.lang.Object data,
java.io.OutputStream s)
throws java.io.IOException
java.io.IOExceptionpublic final java.lang.Object convertFromCharacters(char[] ch,
int start,
int length)
public final void convertToCharacters(java.lang.Object data,
java.lang.StringBuffer s)
public final void decodeFromBytesToIntArray(int[] idata,
int istart,
byte[] b,
int start,
int length)
public final int[] decodeFromInputStreamToIntArray(java.io.InputStream s)
throws java.io.IOException
java.io.IOExceptionpublic final void encodeToOutputStreamFromIntArray(int[] idata,
java.io.OutputStream s)
throws java.io.IOException
java.io.IOExceptionpublic final void encodeToBytes(java.lang.Object array,
int astart,
int alength,
byte[] b,
int start)
encodeToBytes in class BuiltInEncodingAlgorithmpublic final void encodeToBytesFromIntArray(int[] idata,
int istart,
int ilength,
byte[] b,
int start)
public final void convertToCharactersFromIntArray(int[] idata,
java.lang.StringBuffer s)
public final int[] generateArrayFromList(java.util.List array)
Copyright © 2018 Oracle Corporation. All rights reserved.