Module com.sun.xml.fastinfoset
Class FloatEncodingAlgorithm
java.lang.Object
com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.IEEE754FloatingPointEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.FloatEncodingAlgorithm
- All Implemented Interfaces:
EncodingAlgorithm
-
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 -
Method Summary
Modifier and TypeMethodDescriptionfinal Object
convertFromCharacters
(char[] ch, int start, int length) final void
convertToCharacters
(Object data, StringBuilder s) final void
convertToCharactersFromFloatArray
(float[] fdata, StringBuffer s) Deprecated, for removal: This API element is subject to removal in a future version.final void
convertToCharactersFromFloatArray
(float[] fdata, StringBuilder s) final Object
decodeFromBytes
(byte[] b, int start, int length) final void
decodeFromBytesToFloatArray
(float[] data, int fstart, byte[] b, int start, int length) final Object
final float[]
final void
encodeToBytes
(Object array, int astart, int alength, byte[] b, int start) final void
encodeToBytesFromFloatArray
(float[] fdata, int fstart, int flength, byte[] b, int start) void
encodeToOutputStream
(Object data, OutputStream s) final void
encodeToOutputStreamFromFloatArray
(float[] fdata, OutputStream s) final float[]
generateArrayFromList
(List<Float> array) int
getOctetLengthFromPrimitiveLength
(int primitiveLength) final 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
Methods inherited from interface org.jvnet.fastinfoset.EncodingAlgorithm
convertToCharacters
-
Constructor Details
-
FloatEncodingAlgorithm
public FloatEncodingAlgorithm()
-
-
Method Details
-
getPrimtiveLengthFromOctetLength
public final int getPrimtiveLengthFromOctetLength(int octetLength) throws EncodingAlgorithmException - Specified by:
getPrimtiveLengthFromOctetLength
in classBuiltInEncodingAlgorithm
- Throws:
EncodingAlgorithmException
-
getOctetLengthFromPrimitiveLength
public int getOctetLengthFromPrimitiveLength(int primitiveLength) - Specified by:
getOctetLengthFromPrimitiveLength
in classBuiltInEncodingAlgorithm
-
decodeFromBytes
public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException - Throws:
EncodingAlgorithmException
-
decodeFromInputStream
- Throws:
IOException
-
encodeToOutputStream
- Throws:
IOException
-
convertFromCharacters
-
convertToCharacters
-
decodeFromBytesToFloatArray
public final void decodeFromBytesToFloatArray(float[] data, int fstart, byte[] b, int start, int length) -
decodeFromInputStreamToFloatArray
- Throws:
IOException
-
encodeToOutputStreamFromFloatArray
public final void encodeToOutputStreamFromFloatArray(float[] fdata, OutputStream s) throws IOException - Throws:
IOException
-
encodeToBytes
- Specified by:
encodeToBytes
in classBuiltInEncodingAlgorithm
-
encodeToBytesFromFloatArray
public final void encodeToBytesFromFloatArray(float[] fdata, int fstart, int flength, byte[] b, int start) -
convertToCharactersFromFloatArray
-
convertToCharactersFromFloatArray
@Deprecated(since="2.1.1", forRemoval=true) public final void convertToCharactersFromFloatArray(float[] fdata, StringBuffer s) Deprecated, for removal: This API element is subject to removal in a future version. -
generateArrayFromList
-
convertToCharactersFromFloatArray(float[], StringBuilder)
instead.