public final class XMPScanner extends Object
| Constructor and Description |
|---|
XMPScanner() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] pArgs) |
static Reader |
scanForXMPPacket(Object pInput)
Scans the given input for an XML metadata packet.
|
public static Reader scanForXMPPacket(Object pInput) throws 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.UnsupportedCharsetException - if the encoding specified within the BOM is not supported
by the JRE.IOException - if an I/O exception occurs reading from pInput.ImageIO.createImageInputStream(Object)public static void main(String[] pArgs) throws IOException
IOExceptionCopyright © 2023. All rights reserved.