public interface FormatHandler
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(byte[] data,
int off,
int len)
Return a flag indicating whether the handler is able to handle the data.
|
java.io.InputStream |
getMetadata(java.io.InputStream in)
Return metadata as in input stream (utility method).
|
java.awt.image.BufferedImage |
getThumbnailImage(java.io.InputStream in)
Return a thumbnail image from an input stream (utility method).
|
void |
process(java.io.InputStream in,
Context context)
Process the input stream given.
|
boolean accepts(byte[] data, int off, int len)
data
- data bufferoff
- offsetlen
- number of valid bytestrue
if the handler is able to handle the data; false
otherwisevoid process(java.io.InputStream in, Context context) throws java.io.IOException
in
- input streamcontext
- call contextjava.io.IOException
- if an I/O error occursjava.awt.image.BufferedImage getThumbnailImage(java.io.InputStream in) throws java.io.IOException, ProcessorException
in
- input streamnull
java.io.IOException
- if an I/O error occursProcessorException
- if a processor reports an errorjava.io.InputStream getMetadata(java.io.InputStream in) throws java.io.IOException, ProcessorException
in
- input streamnull
java.io.IOException
- if an I/O error occursProcessorException
- if a processor reports an error"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"