com.sun.xml.fastinfoset.algorithm
Class DoubleEncodingAlgorithm

java.lang.Object
  extended by com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
      extended by com.sun.xml.fastinfoset.algorithm.IEEE754FloatingPointEncodingAlgorithm
          extended by com.sun.xml.fastinfoset.algorithm.DoubleEncodingAlgorithm
All Implemented Interfaces:
EncodingAlgorithm

public class DoubleEncodingAlgorithm
extends IEEE754FloatingPointEncodingAlgorithm


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener
 
Field Summary
 
Fields inherited from class com.sun.xml.fastinfoset.algorithm.IEEE754FloatingPointEncodingAlgorithm
DOUBLE_MAX_CHARACTER_SIZE, DOUBLE_SIZE, FLOAT_MAX_CHARACTER_SIZE, FLOAT_SIZE
 
Fields inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
SPACE_PATTERN
 
Constructor Summary
DoubleEncodingAlgorithm()
           
 
Method Summary
 java.lang.Object convertFromCharacters(char[] ch, int start, int length)
           
 void convertToCharacters(java.lang.Object data, java.lang.StringBuffer s)
           
 void convertToCharactersFromDoubleArray(double[] fdata, java.lang.StringBuffer s)
           
 java.lang.Object decodeFromBytes(byte[] b, int start, int length)
           
 void decodeFromBytesToDoubleArray(double[] data, int fstart, byte[] b, int start, int length)
           
 java.lang.Object decodeFromInputStream(java.io.InputStream s)
           
 double[] decodeFromInputStreamToDoubleArray(java.io.InputStream s)
           
 void encodeToBytes(java.lang.Object array, int astart, int alength, byte[] b, int start)
           
 void encodeToBytesFromDoubleArray(double[] fdata, int fstart, int flength, byte[] b, int start)
           
 void encodeToOutputStream(java.lang.Object data, java.io.OutputStream s)
           
 void encodeToOutputStreamFromDoubleArray(double[] fdata, java.io.OutputStream s)
           
 double[] 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

DoubleEncodingAlgorithm

public DoubleEncodingAlgorithm()
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)

decodeFromBytesToDoubleArray

public final void decodeFromBytesToDoubleArray(double[] data,
                                               int fstart,
                                               byte[] b,
                                               int start,
                                               int length)

decodeFromInputStreamToDoubleArray

public final double[] decodeFromInputStreamToDoubleArray(java.io.InputStream s)
                                                  throws java.io.IOException
Throws:
java.io.IOException

encodeToOutputStreamFromDoubleArray

public final void encodeToOutputStreamFromDoubleArray(double[] fdata,
                                                      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

encodeToBytesFromDoubleArray

public final void encodeToBytesFromDoubleArray(double[] fdata,
                                               int fstart,
                                               int flength,
                                               byte[] b,
                                               int start)

convertToCharactersFromDoubleArray

public final void convertToCharactersFromDoubleArray(double[] fdata,
                                                     java.lang.StringBuffer s)

generateArrayFromList

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