Home » pdfbox-1.1.0-src » org.apache.pdfbox.filter » [javadoc | source]
org.apache.pdfbox.filter
class: LZWDictionary [javadoc | source]
java.lang.Object
   org.apache.pdfbox.filter.LZWDictionary
This is the used for the LZWDecode filter. This represents the dictionary mappings between codes and their values.
Constructor:
 public LZWDictionary() 
Method from org.apache.pdfbox.filter.LZWDictionary Summary:
clear,   getCodeSize,   getData,   getNextCode,   getNode,   visit,   visit
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.filter.LZWDictionary Detail:
 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. It will return null if the code is not defined.
 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.
 public  void visit(byte[] data) throws IOException 
    This will take a visit from a byte[]. This will create new code entries as necessary.
 public  void visit(byte data) throws IOException 
    This will take a visit from a byte. This will create new code entries as necessary.