Class FileTiff.BitInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    FileTiff.ModHuffmanInputStream
    Enclosing class:
    FileTiff

    public class FileTiff.BitInputStream
    extends java.io.FilterInputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int bitsAvail  
      private int buf  
      protected int count  
      private boolean eof  
      protected boolean nextByteMoreSignificant  
      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      BitInputStream​(java.io.InputStream in)  
      BitInputStream​(java.io.InputStream in, boolean nbms)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int availableBits()  
      protected int cbCount()  
      protected void clrBits​(int bitcount)  
      protected int getBits​(int bitcount)  
      void needBits​(int bitcount)  
      int readBit()  
      int readBits​(int bitcount)  
      void reset()  
      void setNextByteMoreSignificant​(boolean nextByteMoreSignificant)  
      void skipPadding​(int bits)  
      • Methods inherited from class java.io.FilterInputStream

        available, close, mark, markSupported, read, read, read, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • buf

        private int buf
      • bitsAvail

        private int bitsAvail
      • eof

        private boolean eof
      • count

        protected int count
      • nextByteMoreSignificant

        protected boolean nextByteMoreSignificant
    • Constructor Detail

      • BitInputStream

        public BitInputStream​(java.io.InputStream in,
                              boolean nbms)
      • BitInputStream

        public BitInputStream​(java.io.InputStream in)
    • Method Detail

      • setNextByteMoreSignificant

        public void setNextByteMoreSignificant​(boolean nextByteMoreSignificant)
      • reset

        public void reset()
                   throws java.io.IOException
        Overrides:
        reset in class java.io.FilterInputStream
        Throws:
        java.io.IOException
      • availableBits

        public int availableBits()
      • skipPadding

        public void skipPadding​(int bits)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readBit

        public int readBit()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readBits

        public int readBits​(int bitcount)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • cbCount

        protected int cbCount()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • needBits

        public void needBits​(int bitcount)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • clrBits

        protected void clrBits​(int bitcount)
      • getBits

        protected int getBits​(int bitcount)