|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.drew.metadata.jpeg.JpegReader
public class JpegReader
Decodes Jpeg SOF0 data, populating a Metadata
object with tag values in a JpegDirectory
.
Constructor Summary | |
---|---|
JpegReader(byte[] data)
Creates a JpegReader for a byte[] containing JPEG data. |
|
JpegReader(java.io.File jpegFile)
Creates a new JpegReader for the specified Jpeg jpegFile. |
|
JpegReader(java.io.InputStream is)
Creates a JpegReader for a JPEG stream. |
Method Summary | |
---|---|
Metadata |
extract()
Performs the Jpeg data extraction, returning a new instance of Metadata . |
Metadata |
extract(Metadata metadata)
Performs the Jpeg data extraction, adding found values to the specified instance of Metadata . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JpegReader(java.io.File jpegFile) throws JpegProcessingException
JpegProcessingException
public JpegReader(java.io.InputStream is) throws JpegProcessingException
is
- JPEG stream. Stream will be closed.
JpegProcessingException
public JpegReader(byte[] data)
data
- the contents of an entire JPEG file as a byte[]Method Detail |
---|
public Metadata extract()
Metadata
.
extract
in interface MetadataReader
public Metadata extract(Metadata metadata)
Metadata
.
extract
in interface MetadataReader
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |