|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.drew.imaging.ImageMetadataReader
public class ImageMetadataReader
Obtains metadata from all supported file formats, including JPEG, RAW (NEF/CRw/CR2) and TIFF.
If the caller knows their file to be of a particular type, they may prefer to use the dedicated MetadataReader
directly (JpegMetadataReader
for Jpeg files, or TiffMetadataReader
for TIFF and RAW files).
The dedicated readers offer a very slight performance improvement, though for most scenarios it is simpler,
more convenient and more robust to use this class.
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
An application entry point. |
static Metadata |
readMetadata(java.io.BufferedInputStream inputStream)
Reads metadata from an input stream. |
static Metadata |
readMetadata(java.io.File file)
Reads metadata from a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Metadata readMetadata(java.io.BufferedInputStream inputStream) throws ImageProcessingException
inputStream
- a stream from which the image data may be read. The stream must be positioned at the
beginning of the image data.
ImageProcessingException
- for general processing errors.public static Metadata readMetadata(java.io.File file) throws ImageProcessingException
file
- a file from which the image data may be read.
ImageProcessingException
- for general processing errors.public static void main(java.lang.String[] args) throws MetadataException, java.io.IOException
args
- the command line arguments
MetadataException
java.io.IOException
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |