Module com.sun.xml.fastinfoset
Class HexadecimalEncodingAlgorithm
java.lang.Object
com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.HexadecimalEncodingAlgorithm
- All Implemented Interfaces:
EncodingAlgorithm
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]
private static final char[]
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 Object
decodeFromBytes
(byte[] b, int start, int length) final Object
final void
encodeToBytes
(Object array, int astart, int alength, byte[] b, int start) void
encodeToOutputStream
(Object data, OutputStream s) 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
-
Field Details
-
NIBBLE_TO_HEXADECIMAL_TABLE
private static final char[] NIBBLE_TO_HEXADECIMAL_TABLE -
HEXADECIMAL_TO_NIBBLE_TABLE
private static final int[] HEXADECIMAL_TO_NIBBLE_TABLE
-
-
Constructor Details
-
HexadecimalEncodingAlgorithm
public HexadecimalEncodingAlgorithm()
-
-
Method Details
-
decodeFromBytes
public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException - Throws:
EncodingAlgorithmException
-
decodeFromInputStream
- Throws:
IOException
-
encodeToOutputStream
- Throws:
IOException
-
convertFromCharacters
-
convertToCharacters
-
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
-
encodeToBytes
- Specified by:
encodeToBytes
in classBuiltInEncodingAlgorithm
-