public final class XMPScanner
extends java.lang.Object
Constructor and Description |
---|
XMPScanner() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] pArgs) |
static java.io.Reader |
scanForXMPPacket(java.lang.Object pInput)
Scans the given input for an XML metadata packet.
|
public static java.io.Reader scanForXMPPacket(java.lang.Object pInput) throws java.io.IOException
NOTE: The XMP Specification says this method of reading an XMP packet
should be considered a last resort.
This is because files may contain multiple XMP packets, some which may be related to embedded resources,
some which may be obsolete (or even incomplete).
pInput
- the input to scan. The input may be an ImageInputStream
or
any object that can be passed to ImageIO.createImageInputStream(Object)
.
Typically this may be a File
, InputStream
or RandomAccessFile
.java.nio.charset.UnsupportedCharsetException
- if the encoding specified within the BOM is not supported
by the JRE.java.io.IOException
- if an I/O exception occurs reading from pInput
.ImageIO.createImageInputStream(Object)
public static void main(java.lang.String[] pArgs) throws java.io.IOException
java.io.IOException
Copyright © 2019. All Rights Reserved.