| java.lang.Object org.pdfbox.filter.LZWDictionary
LZWDictionary | class LZWDictionary (Code) | | This is the used for the LZWDecode filter. This represents the dictionary mappings
between codes and their values.
author: Ben Litchfield version: $Revision: 1.4 $ |
Method Summary | |
public void | clear() This will crear the internal buffer that the dictionary uses. | public int | getCodeSize() This will get the size of the code in bits, 9, 10, or 11. | public byte[] | getData(long code) This will get the value for the code. | public long | getNextCode() This will get the next code that will be created. | public LZWNode | getNode(byte[] data) This will folow the path to the data node.
Parameters: data - The path to the node. | public void | visit(byte[] data) This will take a visit from a byte[]. | public void | visit(byte data) This will take a visit from a byte. |
LZWDictionary | public LZWDictionary()(Code) | | constructor.
|
clear | public void clear()(Code) | | This will crear the internal buffer that the dictionary uses.
|
getCodeSize | public int getCodeSize()(Code) | | This will get the size of the code in bits, 9, 10, or 11.
The size of the code in bits. |
getData | public byte[] getData(long code)(Code) | | This will get the value for the code. It will return null if the code is not
defined.
Parameters: code - The key to the data. The data that is mapped to the code. |
getNextCode | public long getNextCode()(Code) | | This will get the next code that will be created.
The next code to be created. |
getNode | public LZWNode getNode(byte[] data)(Code) | | This will folow the path to the data node.
Parameters: data - The path to the node. The node that resides at that path. |
visit | public void visit(byte[] data) throws IOException(Code) | | This will take a visit from a byte[]. This will create new code entries as
necessary.
Parameters: data - The byte to get a visit from. throws: IOException - If there is an error visiting this data. |
visit | public void visit(byte data) throws IOException(Code) | | This will take a visit from a byte. This will create new code entries as
necessary.
Parameters: data - The byte to get a visit from. throws: IOException - If there is an error visiting this data. |
|
|