com.sun.xml.fastinfoset.algorithm
Class IntEncodingAlgorithm

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

public class IntEncodingAlgorithm
extends IntegerEncodingAlgorithm


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.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
IntEncodingAlgorithm()
           
 
Method Summary
 java.lang.Object convertFromCharacters(char[] ch, int start, int length)
           
 void convertToCharacters(java.lang.Object data, java.lang.StringBuffer s)
           
 void convertToCharactersFromIntArray(int[] idata, java.lang.StringBuffer s)
           
 java.lang.Object decodeFromBytes(byte[] b, int start, int length)
           
 void decodeFromBytesToIntArray(int[] idata, int istart, byte[] b, int start, int length)
           
 java.lang.Object decodeFromInputStream(java.io.InputStream s)
           
 int[] decodeFromInputStreamToIntArray(java.io.InputStream s)
           
 void encodeToBytes(java.lang.Object array, int astart, int alength, byte[] b, int start)
           
 void encodeToBytesFromIntArray(int[] idata, int istart, int ilength, byte[] b, int start)
           
 void encodeToOutputStream(java.lang.Object data, java.io.OutputStream s)
           
 void encodeToOutputStreamFromIntArray(int[] idata, java.io.OutputStream s)
           
 int[] generateArrayFromList(java.util.List array)
           
 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

IntEncodingAlgorithm

public IntEncodingAlgorithm()
Method Detail

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

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)

decodeFromBytesToIntArray

public final void decodeFromBytesToIntArray(int[] idata,
                                            int istart,
                                            byte[] b,
                                            int start,
                                            int length)

decodeFromInputStreamToIntArray

public final int[] decodeFromInputStreamToIntArray(java.io.InputStream s)
                                            throws java.io.IOException
Throws:
java.io.IOException

encodeToOutputStreamFromIntArray

public final void encodeToOutputStreamFromIntArray(int[] idata,
                                                   java.io.OutputStream s)
                                            throws java.io.IOException
Throws:
java.io.IOException

encodeToBytes

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

encodeToBytesFromIntArray

public final void encodeToBytesFromIntArray(int[] idata,
                                            int istart,
                                            int ilength,
                                            byte[] b,
                                            int start)

convertToCharactersFromIntArray

public final void convertToCharactersFromIntArray(int[] idata,
                                                  java.lang.StringBuffer s)

generateArrayFromList

public final int[] generateArrayFromList(java.util.List array)