public class XMPProcessor extends java.lang.Object implements Processor, FilterStateListener
Context
.Constructor and Description |
---|
XMPProcessor(Context context)
Create a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
ended(Filter filter,
java.io.OutputStream out)
Invoked when the filter detects the end of a section.
|
void |
process(byte[] buf,
int off,
int len)
Process a couple of bytes.
|
static java.io.InputStream |
process(java.io.InputStream in)
Utility method that processes an input stream and returns the first
valid XMP input stream.
|
java.io.OutputStream |
started(Filter filter)
Invoked when the filter detects the start of a section it understands.
|
public XMPProcessor(Context context)
context
- contextpublic final void process(byte[] buf, int off, int len) throws java.io.IOException
public java.io.OutputStream started(Filter filter)
started
in interface FilterStateListener
filter
- filternull
public void ended(Filter filter, java.io.OutputStream out)
ended
in interface FilterStateListener
filter
- filterout
- output stream returned from FilterStateListener.started(Filter)
or null
public static java.io.InputStream process(java.io.InputStream in) throws java.io.IOException, ProcessorException
in
- input streamjava.io.IOException
- if an I/O error occursProcessorException
- if a processor error occursCopyright © 2010 - 2020 Adobe. All Rights Reserved