Class JpegInputStream


  • class JpegInputStream
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int b  
      private int cnt  
      private int[] interval  
      private int nextPos  
    • Constructor Summary

      Constructors 
      Constructor Description
      JpegInputStream​(int[] interval)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Returns true as long there are unread fields available, else false
      int nextBit()  
      (package private) int read()
      Returns the value from current field (as InputStream.read() would do) and set the position of the pointer to the next field to read.
      • Methods inherited from class java.lang.Object

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

      • interval

        private final int[] interval
      • nextPos

        private int nextPos
      • cnt

        private int cnt
      • b

        private int b
    • Constructor Detail

      • JpegInputStream

        JpegInputStream​(int[] interval)
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns true as long there are unread fields available, else false
        Returns:
      • read

        int read()
        Returns the value from current field (as InputStream.read() would do) and set the position of the pointer to the next field to read.
        Returns:
        Throws:
        java.lang.IllegalStateException - if the stream hasn't any other value.