public class JPEGFile extends Object implements JPEGConstants
限定符和类型 | 字段和说明 |
---|---|
protected static org.apache.commons.logging.Log |
log
logger
|
构造器和说明 |
---|
JPEGFile(ImageInputStream in)
Constructor for ImageInputStreams.
|
JPEGFile(InputStream in)
Constructor for InputStreams.
|
限定符和类型 | 方法和说明 |
---|---|
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(ImageInputStream in)
in
- the input stream to read the image frompublic JPEGFile(InputStream in)
in
- the input stream to read the image frompublic DataInput getDataInput()
DataInput
instance this object operates on.public int readMarkerSegment() throws IOException
IOException
- if an I/O error occurs while reading from the image filepublic int readSegmentLength() throws IOException
IOException
- if an I/O error occurs while reading from the image filepublic void skipCurrentMarkerSegment() throws IOException
IOException
- if an I/O error occurs while reading from the image fileCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.