Package org.web3d.parser.x3d
Class DeltazlibIntArrayAlgorithm
java.lang.Object
org.web3d.parser.x3d.DeltazlibIntArrayAlgorithm
- All Implemented Interfaces:
org.jvnet.fastinfoset.EncodingAlgorithm
public class DeltazlibIntArrayAlgorithm
extends Object
implements org.jvnet.fastinfoset.EncodingAlgorithm
An encoder for handling integer arrays.
- Version:
- $Id: $
- Author:
- Alan Hudson
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault ConstructorDeltazlibIntArrayAlgorithm
(int compression_level) Constructor -
Method Summary
Modifier and TypeMethodDescriptionfinal Object
convertFromCharacters
(char[] ch, int start, int length) final void
convertToCharacters
(Object data, StringBuffer s) final void
convertToCharactersFromByteArray
(byte[] sdata, StringBuffer s) final Object
decodeFromBytes
(byte[] b, int start, int length) final void
decodeFromBytesToByteArray
(byte[] sdata, int istart, byte[] b, int start, int length) final Object
final byte[]
void
encodeToOutputStream
(Object data, OutputStream s) final byte[]
generateArrayFromList
(List<Byte> array) void
-
Field Details
-
ALGORITHM_URI
-
SPACE_PATTERN
-
BYTE_SIZE
public static final int BYTE_SIZE- See Also:
-
DEFAULT_COMPRESSION_LEVEL
protected static final int DEFAULT_COMPRESSION_LEVELDefault compression level option for Deflater- See Also:
-
compression_level
protected int compression_levelThe working compression level option for the Deflater
-
-
Constructor Details
-
DeltazlibIntArrayAlgorithm
public DeltazlibIntArrayAlgorithm()Default Constructor -
DeltazlibIntArrayAlgorithm
public DeltazlibIntArrayAlgorithm(int compression_level) Constructor- Parameters:
compression_level
- Specifies the compression level. Must be a valid level constant from thejava.util.zip.Deflater
class.
-
-
Method Details
-
encodeToOutputStream
- Specified by:
encodeToOutputStream
in interfaceorg.jvnet.fastinfoset.EncodingAlgorithm
- Throws:
IOException
-
decodeFromBytes
public final Object decodeFromBytes(byte[] b, int start, int length) throws org.jvnet.fastinfoset.EncodingAlgorithmException - Specified by:
decodeFromBytes
in interfaceorg.jvnet.fastinfoset.EncodingAlgorithm
- Throws:
org.jvnet.fastinfoset.EncodingAlgorithmException
-
decodeFromInputStream
- Specified by:
decodeFromInputStream
in interfaceorg.jvnet.fastinfoset.EncodingAlgorithm
- Throws:
IOException
-
convertFromCharacters
- Specified by:
convertFromCharacters
in interfaceorg.jvnet.fastinfoset.EncodingAlgorithm
-
convertToCharacters
- Specified by:
convertToCharacters
in interfaceorg.jvnet.fastinfoset.EncodingAlgorithm
-
decodeFromBytesToByteArray
public final void decodeFromBytesToByteArray(byte[] sdata, int istart, byte[] b, int start, int length) -
decodeFromInputStreamToByteArray
- Throws:
IOException
-
convertToCharactersFromByteArray
-
generateArrayFromList
-
matchWhiteSpaceDelimnatedWords
public void matchWhiteSpaceDelimnatedWords(CharBuffer cb, DeltazlibIntArrayAlgorithm.WordListener wl)
-