|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlgraphics.image.loader.impl.JPEGFile
public class JPEGFile
Provides methods useful for processing JPEG files.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
logger |
Fields inherited from interface org.apache.xmlgraphics.image.loader.impl.JPEGConstants |
---|
APP0, APP1, APP2, APPD, APPE, APPF, EOI, MARK, NULL, SOF0, SOF1, SOF2, SOFA, SOI, SOS |
Constructor Summary | |
---|---|
JPEGFile(javax.imageio.stream.ImageInputStream in)
Constructor for ImageInputStreams. |
|
JPEGFile(java.io.InputStream in)
Constructor for InputStreams. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
Constructor Detail |
---|
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 fromMethod Detail |
---|
public 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 file or if
the stream is not positioned at a marker segment headerpublic int readSegmentLength() throws java.io.IOException
java.io.IOException
public void skipCurrentMarkerSegment() throws java.io.IOException
java.io.IOException
- if an I/O error occurs while reading from the image file
|
xmlgraphics-commons 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |