Module com.sun.xml.fastinfoset
Class ShortEncodingAlgorithm
java.lang.Object
com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.IntegerEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.ShortEncodingAlgorithm
- All Implemented Interfaces:
EncodingAlgorithm
An encoder for handling Short values. Suppports the builtin SHORT encoder.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener
-
Field Summary
Fields inherited from class com.sun.xml.fastinfoset.algorithm.IntegerEncodingAlgorithm
INT_MAX_CHARACTER_SIZE, INT_SIZE, LONG_MAX_CHARACTER_SIZE, LONG_SIZE, SHORT_MAX_CHARACTER_SIZE, SHORT_SIZE
Fields inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
SPACE_PATTERN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object
convertFromCharacters
(char[] ch, int start, int length) final void
convertToCharacters
(Object data, StringBuilder s) final void
convertToCharactersFromShortArray
(short[] sdata, StringBuffer s) Deprecated, for removal: This API element is subject to removal in a future version.final void
convertToCharactersFromShortArray
(short[] sdata, StringBuilder s) final Object
decodeFromBytes
(byte[] b, int start, int length) final void
decodeFromBytesToShortArray
(short[] sdata, int istart, byte[] b, int start, int length) final Object
final short[]
final void
encodeToBytes
(Object array, int astart, int alength, byte[] b, int start) final void
encodeToBytesFromShortArray
(short[] sdata, int istart, int ilength, byte[] b, int start) void
encodeToOutputStream
(Object data, OutputStream s) final void
encodeToOutputStreamFromShortArray
(short[] idata, OutputStream s) final short[]
generateArrayFromList
(List<Short> array) int
getOctetLengthFromPrimitiveLength
(int primitiveLength) final int
getPrimtiveLengthFromOctetLength
(int octetLength) Methods inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
matchWhiteSpaceDelimnatedWords, removeWhitespace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jvnet.fastinfoset.EncodingAlgorithm
convertToCharacters
-
Constructor Details
-
ShortEncodingAlgorithm
public ShortEncodingAlgorithm()
-
-
Method Details
-
getPrimtiveLengthFromOctetLength
public final int getPrimtiveLengthFromOctetLength(int octetLength) throws EncodingAlgorithmException - Specified by:
getPrimtiveLengthFromOctetLength
in classBuiltInEncodingAlgorithm
- Throws:
EncodingAlgorithmException
-
getOctetLengthFromPrimitiveLength
public int getOctetLengthFromPrimitiveLength(int primitiveLength) - Specified by:
getOctetLengthFromPrimitiveLength
in classBuiltInEncodingAlgorithm
-
decodeFromBytes
public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException - Throws:
EncodingAlgorithmException
-
decodeFromInputStream
- Throws:
IOException
-
encodeToOutputStream
- Throws:
IOException
-
convertFromCharacters
-
convertToCharacters
-
decodeFromBytesToShortArray
public final void decodeFromBytesToShortArray(short[] sdata, int istart, byte[] b, int start, int length) -
decodeFromInputStreamToShortArray
- Throws:
IOException
-
encodeToOutputStreamFromShortArray
public final void encodeToOutputStreamFromShortArray(short[] idata, OutputStream s) throws IOException - Throws:
IOException
-
encodeToBytes
- Specified by:
encodeToBytes
in classBuiltInEncodingAlgorithm
-
encodeToBytesFromShortArray
public final void encodeToBytesFromShortArray(short[] sdata, int istart, int ilength, byte[] b, int start) -
convertToCharactersFromShortArray
-
convertToCharactersFromShortArray
@Deprecated(since="2.1.1", forRemoval=true) public final void convertToCharactersFromShortArray(short[] sdata, StringBuffer s) Deprecated, for removal: This API element is subject to removal in a future version. -
generateArrayFromList
-
convertToCharactersFromShortArray(short[], StringBuilder)
instead.