JPEGConstants
public class JPEGFile extends java.lang.Object implements JPEGConstants
Modifier and Type | Field | Description |
---|---|---|
protected static org.apache.commons.logging.Log |
log |
logger
|
Constructor | Description |
---|---|
JPEGFile(java.io.InputStream in) |
Constructor for InputStreams.
|
JPEGFile(javax.imageio.stream.ImageInputStream in) |
Constructor for ImageInputStreams.
|
Modifier and Type | Method | Description |
---|---|---|
java.io.DataInput |
getDataInput() |
Returns the
DataInput instance this object operates on. |
int |
readMarkerSegment() |
Reads the next marker segment identifier and returns it.
|
int |
readSegmentLength() |
Reads the segment length of the current marker segment and returns it.
|
void |
skipCurrentMarkerSegment() |
Skips the current marker segment.
|
public JPEGFile(javax.imageio.stream.ImageInputStream in)
in
- the input stream to read the image frompublic JPEGFile(java.io.InputStream in)
in
- the input stream to read the image frompublic java.io.DataInput getDataInput()
DataInput
instance this object operates on.public int readMarkerSegment() throws java.io.IOException
java.io.IOException
- if an I/O error occurs while reading from the image filepublic int readSegmentLength() throws java.io.IOException
java.io.IOException
- if an I/O error occurs while reading from the image filepublic void skipCurrentMarkerSegment() throws java.io.IOException
java.io.IOException
- if an I/O error occurs while reading from the image fileCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.