Class DoubleEncodingAlgorithm
- java.lang.Object
-
- com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
-
- com.sun.xml.fastinfoset.algorithm.IEEE754FloatingPointEncodingAlgorithm
-
- 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
Constructors Constructor Description DoubleEncodingAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectconvertFromCharacters(char[] ch, int start, int length)voidconvertToCharacters(Object data, StringBuffer s)voidconvertToCharactersFromDoubleArray(double[] fdata, StringBuffer s)ObjectdecodeFromBytes(byte[] b, int start, int length)voiddecodeFromBytesToDoubleArray(double[] data, int fstart, byte[] b, int start, int length)ObjectdecodeFromInputStream(InputStream s)double[]decodeFromInputStreamToDoubleArray(InputStream s)voidencodeToBytes(Object array, int astart, int alength, byte[] b, int start)voidencodeToBytesFromDoubleArray(double[] fdata, int fstart, int flength, byte[] b, int start)voidencodeToOutputStream(Object data, OutputStream s)voidencodeToOutputStreamFromDoubleArray(double[] fdata, OutputStream s)double[]generateArrayFromList(List array)intgetOctetLengthFromPrimitiveLength(int primitiveLength)intgetPrimtiveLengthFromOctetLength(int octetLength)-
Methods inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
matchWhiteSpaceDelimnatedWords, removeWhitespace
-
-
-
-
Method Detail
-
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
-
decodeFromBytes
public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException
- Throws:
EncodingAlgorithmException
-
decodeFromInputStream
public final Object decodeFromInputStream(InputStream s) throws IOException
- Throws:
IOException
-
encodeToOutputStream
public void encodeToOutputStream(Object data, OutputStream s) throws IOException
- Throws:
IOException
-
convertFromCharacters
public final Object convertFromCharacters(char[] ch, int start, int length)
-
convertToCharacters
public final void convertToCharacters(Object data, StringBuffer s)
-
decodeFromBytesToDoubleArray
public final void decodeFromBytesToDoubleArray(double[] data, int fstart, byte[] b, int start, int length)
-
decodeFromInputStreamToDoubleArray
public final double[] decodeFromInputStreamToDoubleArray(InputStream s) throws IOException
- Throws:
IOException
-
encodeToOutputStreamFromDoubleArray
public final void encodeToOutputStreamFromDoubleArray(double[] fdata, OutputStream s) throws IOException- Throws:
IOException
-
encodeToBytes
public final void encodeToBytes(Object array, int astart, int alength, byte[] b, int start)
- Specified by:
encodeToBytesin classBuiltInEncodingAlgorithm
-
encodeToBytesFromDoubleArray
public final void encodeToBytesFromDoubleArray(double[] fdata, int fstart, int flength, byte[] b, int start)
-
convertToCharactersFromDoubleArray
public final void convertToCharactersFromDoubleArray(double[] fdata, StringBuffer s)
-
generateArrayFromList
public final double[] generateArrayFromList(List array)
-
-