Class HexadecimalEncodingAlgorithm
- java.lang.Object
-
- com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
-
- com.sun.xml.fastinfoset.algorithm.HexadecimalEncodingAlgorithm
-
- All Implemented Interfaces:
EncodingAlgorithm
public class HexadecimalEncodingAlgorithm extends BuiltInEncodingAlgorithm
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener
-
-
Field Summary
Fields Modifier and Type Field Description private static int[]HEXADECIMAL_TO_NIBBLE_TABLEprivate static char[]NIBBLE_TO_HEXADECIMAL_TABLE-
Fields inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
SPACE_PATTERN
-
-
Constructor Summary
Constructors Constructor Description HexadecimalEncodingAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectconvertFromCharacters(char[] ch, int start, int length)voidconvertToCharacters(java.lang.Object data, java.lang.StringBuffer s)java.lang.ObjectdecodeFromBytes(byte[] b, int start, int length)java.lang.ObjectdecodeFromInputStream(java.io.InputStream s)voidencodeToBytes(java.lang.Object array, int astart, int alength, byte[] b, int start)voidencodeToOutputStream(java.lang.Object data, java.io.OutputStream s)intgetOctetLengthFromPrimitiveLength(int primitiveLength)intgetPrimtiveLengthFromOctetLength(int octetLength)-
Methods inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
matchWhiteSpaceDelimnatedWords, removeWhitespace
-
-
-
-
Method Detail
-
decodeFromBytes
public final java.lang.Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException- Throws:
EncodingAlgorithmException
-
decodeFromInputStream
public final java.lang.Object decodeFromInputStream(java.io.InputStream s) throws java.io.IOException- Throws:
java.io.IOException
-
encodeToOutputStream
public void encodeToOutputStream(java.lang.Object data, java.io.OutputStream s) throws java.io.IOException- Throws:
java.io.IOException
-
convertFromCharacters
public final java.lang.Object convertFromCharacters(char[] ch, int start, int length)
-
convertToCharacters
public final void convertToCharacters(java.lang.Object data, java.lang.StringBuffer s)
-
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
public final void encodeToBytes(java.lang.Object array, int astart, int alength, byte[] b, int start)- Specified by:
encodeToBytesin classBuiltInEncodingAlgorithm
-
-