public class DoubleEncodingAlgorithm extends IEEE754FloatingPointEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListenerDOUBLE_MAX_CHARACTER_SIZE, DOUBLE_SIZE, FLOAT_MAX_CHARACTER_SIZE, FLOAT_SIZESPACE_PATTERN| Constructor and Description |
|---|
DoubleEncodingAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
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) |
matchWhiteSpaceDelimnatedWords, removeWhitespacepublic final int getPrimtiveLengthFromOctetLength(int octetLength)
throws EncodingAlgorithmException
getPrimtiveLengthFromOctetLength in class BuiltInEncodingAlgorithmEncodingAlgorithmExceptionpublic int getOctetLengthFromPrimitiveLength(int primitiveLength)
getOctetLengthFromPrimitiveLength in class BuiltInEncodingAlgorithmpublic final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException
EncodingAlgorithmExceptionpublic final Object decodeFromInputStream(InputStream s) throws IOException
IOExceptionpublic void encodeToOutputStream(Object data, OutputStream s) throws IOException
IOExceptionpublic final Object convertFromCharacters(char[] ch, int start, int length)
public final void convertToCharacters(Object data, StringBuffer s)
public final void decodeFromBytesToDoubleArray(double[] data,
int fstart,
byte[] b,
int start,
int length)
public final double[] decodeFromInputStreamToDoubleArray(InputStream s) throws IOException
IOExceptionpublic final void encodeToOutputStreamFromDoubleArray(double[] fdata,
OutputStream s)
throws IOException
IOExceptionpublic final void encodeToBytes(Object array, int astart, int alength, byte[] b, int start)
encodeToBytes in class BuiltInEncodingAlgorithmpublic final void encodeToBytesFromDoubleArray(double[] fdata,
int fstart,
int flength,
byte[] b,
int start)
public final void convertToCharactersFromDoubleArray(double[] fdata,
StringBuffer s)
public final double[] generateArrayFromList(List array)
Copyright © 2012 Oracle Corpration. All Rights Reserved.