Class JpegInputStream
- java.lang.Object
-
- org.apache.commons.imaging.formats.jpeg.decoder.JpegInputStream
-
final class JpegInputStream extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private intbprivate intcntprivate int[]intervalprivate intnextPos(package private) static intSHALLOW_SIZE
-
Constructor Summary
Constructors Constructor Description JpegInputStream(int[] interval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Returnstrueas long there are unread fields available, elsefalseintnextBit()(package private) intread()Returns the value from current field (asInputStream.read()would do) and set the position of the pointer to the next field to read.
-
-
-
Field Detail
-
SHALLOW_SIZE
static final int SHALLOW_SIZE
- See Also:
- Constant Field Values
-
interval
private final int[] interval
-
nextPos
private int nextPos
-
cnt
private int cnt
-
b
private int b
-
-
Method Detail
-
hasNext
public boolean hasNext()
Returnstrueas long there are unread fields available, elsefalse- Returns:
trueas long there are unread fields available, elsefalse
-
nextBit
public int nextBit() throws ImagingException- 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:
java.lang.IllegalStateException- if the stream hasn't any other value.
-
-