com.sun.xml.fastinfoset.algorithm
Class HexadecimalEncodingAlgorithm

java.lang.Object
  extended bycom.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
      extended bycom.sun.xml.fastinfoset.algorithm.HexadecimalEncodingAlgorithm
All Implemented Interfaces:
EncodingAlgorithm

public class HexadecimalEncodingAlgorithm
extends BuiltInEncodingAlgorithm


Nested Class Summary
 
Nested classes inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener
 
Field Summary
 
Fields inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
SPACE_PATTERN
 
Constructor Summary
HexadecimalEncodingAlgorithm()
           
 
Method Summary
 java.lang.Object convertFromCharacters(char[] ch, int start, int length)
           
 void convertToCharacters(java.lang.Object data, java.lang.StringBuffer s)
           
 java.lang.Object decodeFromBytes(byte[] b, int start, int length)
           
 java.lang.Object decodeFromInputStream(java.io.InputStream s)
           
 void encodeToBytes(java.lang.Object array, int astart, int alength, byte[] b, int start)
           
 void encodeToOutputStream(java.lang.Object data, java.io.OutputStream s)
           
 int getOctetLengthFromPrimitiveLength(int primitiveLength)
           
 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
 

Constructor Detail

HexadecimalEncodingAlgorithm

public HexadecimalEncodingAlgorithm()
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:
getPrimtiveLengthFromOctetLength in class BuiltInEncodingAlgorithm
Throws:
EncodingAlgorithmException

getOctetLengthFromPrimitiveLength

public int getOctetLengthFromPrimitiveLength(int primitiveLength)
Specified by:
getOctetLengthFromPrimitiveLength in class BuiltInEncodingAlgorithm

encodeToBytes

public final void encodeToBytes(java.lang.Object array,
                                int astart,
                                int alength,
                                byte[] b,
                                int start)
Specified by:
encodeToBytes in class BuiltInEncodingAlgorithm