Class JpegInputStream

java.lang.Object
org.apache.commons.imaging.formats.jpeg.decoder.JpegInputStream

class JpegInputStream extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
    private int
     
    private final int[]
     
    private int
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    boolean
    Returns true as long there are unread fields available, else false
    int
     
    (package private) int
    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 Details

    • interval

      private final int[] interval
    • nextPos

      private int nextPos
    • cnt

      private int cnt
    • b

      private int b
  • Constructor Details

    • JpegInputStream

      JpegInputStream(int[] interval)
  • Method Details

    • hasNext

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

      public int nextBit() throws ImageReadException
      Throws:
      ImageReadException
    • 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:
      IllegalStateException - if the stream hasn't any other value.