Class BoolDecoder


  • final class BoolDecoder
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int bitCount  
      (package private) javax.imageio.stream.ImageInputStream data  
      private long offset  
      private int range  
      private int value  
    • Constructor Summary

      Constructors 
      Constructor Description
      BoolDecoder​(javax.imageio.stream.ImageInputStream frame, long offset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void initBoolDecoder()  
      int readBit()  
      int readBool​(int probability)  
      int readLiteral​(int numBits)
      Convenience method reads a "literal", that is, a "numBits" wide unsigned value whose bits come high- to low-order, with each bit encoded at probability 128 (i.e., 1/2).
      (package private) int readTree​(int[] t, int[] p, int skipBranches)  
      void seek()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • bitCount

        private int bitCount
      • data

        javax.imageio.stream.ImageInputStream data
      • offset

        private long offset
      • range

        private int range
      • value

        private int value
    • Constructor Detail

      • BoolDecoder

        BoolDecoder​(javax.imageio.stream.ImageInputStream frame,
                    long offset)
             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • initBoolDecoder

        private void initBoolDecoder()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readBit

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

        public int readBool​(int probability)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readLiteral

        public int readLiteral​(int numBits)
                        throws java.io.IOException
        Convenience method reads a "literal", that is, a "numBits" wide unsigned value whose bits come high- to low-order, with each bit encoded at probability 128 (i.e., 1/2).
        Throws:
        java.io.IOException
      • readTree

        int readTree​(int[] t,
                     int[] p,
                     int skipBranches)
              throws java.io.IOException
        Throws:
        java.io.IOException
      • seek

        public void seek()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object