Class IntEncodingAlgorithm
java.lang.Object
com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.IntegerEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.IntEncodingAlgorithm
- All Implemented Interfaces:
EncodingAlgorithm
-
Nested Class Summary
Nested classes/interfaces inherited from class BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener -
Field Summary
Fields inherited from class IntegerEncodingAlgorithm
INT_MAX_CHARACTER_SIZE, INT_SIZE, LONG_MAX_CHARACTER_SIZE, LONG_SIZE, SHORT_MAX_CHARACTER_SIZE, SHORT_SIZEFields inherited from class BuiltInEncodingAlgorithm
SPACE_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectconvertFromCharacters(char[] ch, int start, int length) final voidconvertToCharacters(Object data, StringBuilder s) final voidconvertToCharactersFromIntArray(int[] idata, StringBuffer s) Deprecated, for removal: This API element is subject to removal in a future version.final voidconvertToCharactersFromIntArray(int[] idata, StringBuilder s) final ObjectdecodeFromBytes(byte[] b, int start, int length) final voiddecodeFromBytesToIntArray(int[] idata, int istart, byte[] b, int start, int length) final Objectfinal int[]final voidencodeToBytes(Object array, int astart, int alength, byte[] b, int start) final voidencodeToBytesFromIntArray(int[] idata, int istart, int ilength, byte[] b, int start) voidencodeToOutputStream(Object data, OutputStream s) final voidencodeToOutputStreamFromIntArray(int[] idata, OutputStream s) final int[]generateArrayFromList(List<Integer> array) intgetOctetLengthFromPrimitiveLength(int primitiveLength) final intgetPrimtiveLengthFromOctetLength(int octetLength) Methods inherited from class BuiltInEncodingAlgorithm
matchWhiteSpaceDelimnatedWords, removeWhitespaceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EncodingAlgorithm
convertToCharacters
-
Constructor Details
-
IntEncodingAlgorithm
public IntEncodingAlgorithm()
-
-
Method Details
-
getPrimtiveLengthFromOctetLength
public final int getPrimtiveLengthFromOctetLength(int octetLength) throws EncodingAlgorithmException - Specified by:
getPrimtiveLengthFromOctetLengthin classBuiltInEncodingAlgorithm- Throws:
EncodingAlgorithmException
-
getOctetLengthFromPrimitiveLength
public int getOctetLengthFromPrimitiveLength(int primitiveLength) - Specified by:
getOctetLengthFromPrimitiveLengthin classBuiltInEncodingAlgorithm
-
decodeFromBytes
public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException - Throws:
EncodingAlgorithmException
-
decodeFromInputStream
- Throws:
IOException
-
encodeToOutputStream
- Throws:
IOException
-
convertFromCharacters
-
convertToCharacters
-
decodeFromBytesToIntArray
public final void decodeFromBytesToIntArray(int[] idata, int istart, byte[] b, int start, int length) -
decodeFromInputStreamToIntArray
- Throws:
IOException
-
encodeToOutputStreamFromIntArray
- Throws:
IOException
-
encodeToBytes
- Specified by:
encodeToBytesin classBuiltInEncodingAlgorithm
-
encodeToBytesFromIntArray
public final void encodeToBytesFromIntArray(int[] idata, int istart, int ilength, byte[] b, int start) -
convertToCharactersFromIntArray
-
convertToCharactersFromIntArray
@Deprecated(since="2.1.1", forRemoval=true) public final void convertToCharactersFromIntArray(int[] idata, StringBuffer s) Deprecated, for removal: This API element is subject to removal in a future version. -
generateArrayFromList
-
convertToCharactersFromIntArray(int[], StringBuilder)instead.