com.sun.xml.fastinfoset.algorithm
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
|
Method Summary |
Object |
convertFromCharacters(char[] ch,
int start,
int length)
|
void |
convertToCharacters(Object data,
StringBuffer s)
|
void |
convertToCharactersFromDoubleArray(double[] fdata,
StringBuffer s)
|
Object |
decodeFromBytes(byte[] b,
int start,
int length)
|
void |
decodeFromBytesToDoubleArray(double[] data,
int fstart,
byte[] b,
int start,
int length)
|
Object |
decodeFromInputStream(InputStream s)
|
double[] |
decodeFromInputStreamToDoubleArray(InputStream s)
|
void |
encodeToBytes(Object array,
int astart,
int alength,
byte[] b,
int start)
|
void |
encodeToBytesFromDoubleArray(double[] fdata,
int fstart,
int flength,
byte[] b,
int start)
|
void |
encodeToOutputStream(Object data,
OutputStream s)
|
void |
encodeToOutputStreamFromDoubleArray(double[] fdata,
OutputStream s)
|
double[] |
generateArrayFromList(List array)
|
int |
getOctetLengthFromPrimitiveLength(int primitiveLength)
|
int |
getPrimtiveLengthFromOctetLength(int octetLength)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleEncodingAlgorithm
public DoubleEncodingAlgorithm()
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 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:
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,
StringBuffer s)
generateArrayFromList
public final double[] generateArrayFromList(List array)
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.