Class BooleanEncodingAlgorithm
java.lang.Object
com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.BooleanEncodingAlgorithm
- All Implemented Interfaces:
EncodingAlgorithm
An encoder for handling boolean values. Suppports the builtin BOOLEAN encoder.
- Author:
- Alan Hudson, Paul Sandoz
-
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.BuiltInEncodingAlgorithm
SPACE_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectconvertFromCharacters(char[] ch, int start, int length) final voidconvertToCharacters(Object data, StringBuffer s) final ObjectdecodeFromBytes(byte[] b, int start, int length) final voiddecodeFromBytesToBooleanArray(boolean[] bdata, int bstart, int blength, byte[] b, int start, int length) final ObjectvoidencodeToBytes(Object array, int astart, int alength, byte[] b, int start) voidencodeToBytesFromBooleanArray(boolean[] array, int astart, int alength, byte[] b, int start) voidencodeToOutputStream(Object data, OutputStream s) intgetOctetLengthFromPrimitiveLength(int primitiveLength) intgetPrimtiveLengthFromOctetLength(int octetLength) intgetPrimtiveLengthFromOctetLength(int octetLength, int firstOctet) Methods inherited from class com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
matchWhiteSpaceDelimnatedWords, removeWhitespace
-
Constructor Details
-
BooleanEncodingAlgorithm
public BooleanEncodingAlgorithm()
-
-
Method Details
-
getPrimtiveLengthFromOctetLength
- 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
- Throws:
IOException
-
encodeToOutputStream
- Throws:
IOException
-
convertFromCharacters
-
convertToCharacters
-
getPrimtiveLengthFromOctetLength
public int getPrimtiveLengthFromOctetLength(int octetLength, int firstOctet) throws EncodingAlgorithmException - Throws:
EncodingAlgorithmException
-
decodeFromBytesToBooleanArray
public final void decodeFromBytesToBooleanArray(boolean[] bdata, int bstart, int blength, byte[] b, int start, int length) -
encodeToBytes
- Specified by:
encodeToBytesin classBuiltInEncodingAlgorithm
-
encodeToBytesFromBooleanArray
public void encodeToBytesFromBooleanArray(boolean[] array, int astart, int alength, byte[] b, int start)
-