public final class XMPScanner extends Object
Constructor | Description |
---|---|
XMPScanner() |
Modifier and Type | Method | 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
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
IOException
Copyright © 2018. All rights reserved.