Class JpegInputStream
java.lang.Object
org.apache.commons.imaging.formats.jpeg.decoder.JpegInputStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate final int[]private int(package private) static final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SHALLOW_SIZE
static final int SHALLOW_SIZE- See Also:
-
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()Returnstrueas long there are unread fields available, elsefalse- Returns:
trueas long there are unread fields available, elsefalse
-
nextBit
- Throws:
ImagingException
-
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:
- the value from current field (as
InputStream.read()would do). - Throws:
IllegalStateException- if the stream hasn't any other value.
-