Home » pdfbox-1.1.0-src » org.apache.pdfbox.io » [javadoc | source]
public class: NBitInputStream [javadoc | source]
This is an n-bit input stream. This means that you can read chunks of data as any number of bits, not just 8 bits like the regular input stream. Just set the number of bits that you would like to read on each call. The default is 8.
 public NBitInputStream(InputStream is) 
    is - The input stream to read from.
Method from org.apache.pdfbox.io.NBitInputStream Summary:
getBitsInChunk,   read,   setBitsInChunk,   unread
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.io.NBitInputStream Detail:
 public int getBitsInChunk() 
    Getter for property bitsToRead.
 public long read() throws IOException 
    This will read the next n bits from the stream and return the unsigned value of those bits.
 public  void setBitsInChunk(int bitsInChunkValue) 
    Setter for property bitsToRead.
 public  void unread(long data) 
    This will unread some data.