public class FloatEncodingAlgorithm extends IEEE754FloatingPointEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener
DOUBLE_MAX_CHARACTER_SIZE, DOUBLE_SIZE, FLOAT_MAX_CHARACTER_SIZE, FLOAT_SIZE
SPACE_PATTERN
Constructor and Description |
---|
FloatEncodingAlgorithm() |
Modifier and Type | Method and Description |
---|---|
Object |
convertFromCharacters(char[] ch,
int start,
int length) |
void |
convertToCharacters(Object data,
StringBuffer s) |
void |
convertToCharactersFromFloatArray(float[] fdata,
StringBuffer s) |
Object |
decodeFromBytes(byte[] b,
int start,
int length) |
void |
decodeFromBytesToFloatArray(float[] data,
int fstart,
byte[] b,
int start,
int length) |
Object |
decodeFromInputStream(InputStream s) |
float[] |
decodeFromInputStreamToFloatArray(InputStream s) |
void |
encodeToBytes(Object array,
int astart,
int alength,
byte[] b,
int start) |
void |
encodeToBytesFromFloatArray(float[] fdata,
int fstart,
int flength,
byte[] b,
int start) |
void |
encodeToOutputStream(Object data,
OutputStream s) |
void |
encodeToOutputStreamFromFloatArray(float[] fdata,
OutputStream s) |
float[] |
generateArrayFromList(List array) |
int |
getOctetLengthFromPrimitiveLength(int primitiveLength) |
int |
getPrimtiveLengthFromOctetLength(int octetLength) |
matchWhiteSpaceDelimnatedWords, removeWhitespace
public final int getPrimtiveLengthFromOctetLength(int octetLength) throws EncodingAlgorithmException
getPrimtiveLengthFromOctetLength
in class BuiltInEncodingAlgorithm
EncodingAlgorithmException
public int getOctetLengthFromPrimitiveLength(int primitiveLength)
getOctetLengthFromPrimitiveLength
in class BuiltInEncodingAlgorithm
public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException
EncodingAlgorithmException
public final Object decodeFromInputStream(InputStream s) throws IOException
IOException
public void encodeToOutputStream(Object data, OutputStream s) throws IOException
IOException
public final Object convertFromCharacters(char[] ch, int start, int length)
public final void convertToCharacters(Object data, StringBuffer s)
public final void decodeFromBytesToFloatArray(float[] data, int fstart, byte[] b, int start, int length)
public final float[] decodeFromInputStreamToFloatArray(InputStream s) throws IOException
IOException
public final void encodeToOutputStreamFromFloatArray(float[] fdata, OutputStream s) throws IOException
IOException
public final void encodeToBytes(Object array, int astart, int alength, byte[] b, int start)
encodeToBytes
in class BuiltInEncodingAlgorithm
public final void encodeToBytesFromFloatArray(float[] fdata, int fstart, int flength, byte[] b, int start)
public final void convertToCharactersFromFloatArray(float[] fdata, StringBuffer s)
public final float[] generateArrayFromList(List array)
Copyright © 2014 Oracle Corpration. All rights reserved.