Class LongEncodingAlgorithm
java.lang.Object
com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.IntegerEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.LongEncodingAlgorithm
- All Implemented Interfaces:
EncodingAlgorithm
- Direct Known Subclasses:
UUIDEncodingAlgorithm
-
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 TypeMethodDescriptionconvertFromCharacters(char[] ch, int start, int length) voidconvertToCharacters(Object data, StringBuilder s) final voidconvertToCharactersFromLongArray(long[] ldata, StringBuffer s) Deprecated, for removal: This API element is subject to removal in a future version.final voidconvertToCharactersFromLongArray(long[] ldata, StringBuilder s) final ObjectdecodeFromBytes(byte[] b, int start, int length) final voiddecodeFromBytesToLongArray(long[] ldata, int istart, byte[] b, int start, int length) final Objectfinal long[]final voidencodeToBytes(Object array, int astart, int alength, byte[] b, int start) final voidencodeToBytesFromLongArray(long[] ldata, int lstart, int llength, byte[] b, int start) voidencodeToOutputStream(Object data, OutputStream s) final voidencodeToOutputStreamFromLongArray(long[] ldata, OutputStream s) final long[]generateArrayFromList(List<Long> array) intgetOctetLengthFromPrimitiveLength(int primitiveLength) 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
-
LongEncodingAlgorithm
public LongEncodingAlgorithm()
-
-
Method Details
-
getPrimtiveLengthFromOctetLength
- 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
-
decodeFromBytesToLongArray
public final void decodeFromBytesToLongArray(long[] ldata, int istart, byte[] b, int start, int length) -
decodeFromInputStreamToIntArray
- Throws:
IOException
-
encodeToOutputStreamFromLongArray
public final void encodeToOutputStreamFromLongArray(long[] ldata, OutputStream s) throws IOException - Throws:
IOException
-
encodeToBytes
- Specified by:
encodeToBytesin classBuiltInEncodingAlgorithm
-
encodeToBytesFromLongArray
public final void encodeToBytesFromLongArray(long[] ldata, int lstart, int llength, byte[] b, int start) -
convertToCharactersFromLongArray
-
convertToCharactersFromLongArray
@Deprecated(since="2.1.1", forRemoval=true) public final void convertToCharactersFromLongArray(long[] ldata, StringBuffer s) Deprecated, for removal: This API element is subject to removal in a future version. -
generateArrayFromList
-
convertToCharactersFromLongArray(long[], StringBuilder)instead.