Class JpegInputStream
java.lang.Object
org.apache.commons.imaging.formats.jpeg.decoder.JpegInputStream
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
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()Returnstrue
as long there are unread fields available, elsefalse
- Returns:
-
nextBit
- Throws:
ImageReadException
-
read
int read()Returns the value from current field (asInputStream.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.
-