|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.drew.metadata.jpeg.JpegCommentReader
public class JpegCommentReader
Decodes the comment stored within Jpeg files, populating a Metadata
object with tag values in a
JpegCommentDirectory
.
Field Summary | |
---|---|
private byte[] |
_data
The COM data segment. |
Constructor Summary | |
---|---|
JpegCommentReader(byte[] data)
Creates a JpegCommentReader for raw JPEG data. |
|
JpegCommentReader(File jpegFile)
Creates a new JpegReader for the specified Jpeg jpegFile. |
|
JpegCommentReader(InputStream is)
Creates a JpegCommentReader 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 |
Field Detail |
---|
private final byte[] _data
Constructor Detail |
---|
public JpegCommentReader(File jpegFile) throws JpegProcessingException
JpegProcessingException
public JpegCommentReader(InputStream is) throws JpegProcessingException
is
- JPEG stream. Stream will be closed.
JpegProcessingException
public JpegCommentReader(byte[] data)
data
- JPEG data 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 |