org.apache.poi.hdgf
public class HDGFLZW extends java.lang.Object
Constructor and Description |
---|
HDGFLZW() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(java.io.InputStream src)
Compress the given input stream, returning the array of bytes
of the compressed input
|
void |
compress(java.io.InputStream src,
java.io.OutputStream res)
Performs the Visio compatible streaming LZW compression.
|
byte[] |
decode(java.io.InputStream src)
Decompresses the given input stream, returning the array of bytes
of the decompressed input.
|
void |
decode(java.io.InputStream src,
java.io.OutputStream res)
Perform a streaming decompression of the input.
|
static int |
fromByte(byte b)
Given a java byte, turn it into an integer between 0
and 255 (i.e.
|
static byte |
fromInt(int b)
Given an integer, turn it into a java byte, handling
the wrapping.
|
public static byte fromInt(int b)
public static int fromByte(byte b)
public byte[] compress(java.io.InputStream src) throws java.io.IOException
java.io.IOException
public byte[] decode(java.io.InputStream src) throws java.io.IOException
java.io.IOException
public void decode(java.io.InputStream src, java.io.OutputStream res) throws java.io.IOException
java.io.IOException
public void compress(java.io.InputStream src, java.io.OutputStream res) throws java.io.IOException
java.io.IOException
Copyright 2014 The Apache Software Foundation or its licensors, as applicable.