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 BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]private static final char[]Fields 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, StringBuffer s) final ObjectdecodeFromBytes(byte[] b, int start, int length) final Objectfinal voidencodeToBytes(Object array, int astart, int alength, byte[] b, int start) voidencodeToOutputStream(Object data, OutputStream s) intgetOctetLengthFromPrimitiveLength(int primitiveLength) final intgetPrimtiveLengthFromOctetLength(int octetLength) Methods inherited from class BuiltInEncodingAlgorithm
matchWhiteSpaceDelimnatedWords, removeWhitespace
-
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:
getPrimtiveLengthFromOctetLengthin classBuiltInEncodingAlgorithm- Throws:
EncodingAlgorithmException
-
getOctetLengthFromPrimitiveLength
public int getOctetLengthFromPrimitiveLength(int primitiveLength) - Specified by:
getOctetLengthFromPrimitiveLengthin classBuiltInEncodingAlgorithm
-
encodeToBytes
- Specified by:
encodeToBytesin classBuiltInEncodingAlgorithm
-