public class ImageMetadataReader
extends java.lang.Object
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.| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
An application entry point.
|
static Metadata |
readMetadata(java.io.BufferedInputStream inputStream,
boolean waitForBytes)
Reads metadata from an input stream.
|
static Metadata |
readMetadata(java.io.File file)
Reads metadata from a file.
|
public static Metadata readMetadata(java.io.BufferedInputStream inputStream, boolean waitForBytes) throws ImageProcessingException, java.io.IOException
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.java.io.IOExceptionpublic static Metadata readMetadata(java.io.File file) throws ImageProcessingException, java.io.IOException
file - a file from which the image data may be read.ImageProcessingException - for general processing errors.java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws MetadataException,
java.io.IOException
/thumb is passed, then any thumbnail data will be
written to a file with name of the input file having '.thumb.jpg' appended.args - the command line argumentsMetadataExceptionjava.io.IOExceptionCopyright © 2003-2012 Drew Noakes. All Rights Reserved.