|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImageAnalyzer
Interface for image analyzers. All image analyzers have to implement this interface.
| Method Summary | |
|---|---|
boolean |
detectHeader(byte[] data)
Detect the image type. |
java.lang.String[] |
getFormatNames()
Returns all format names supported by this analyzer. |
int |
getHeaderBufSize()
Returns the amount of bytes required by this analyzer to detect if it is responsible for this image. |
ImageInfo |
getInfo(Configuration configuration,
java.io.InputStream inputStream)
Extracts the meta information for the given image. |
int |
getStreamStartPosition()
Returns the position where this analyzer wants to start reading meta data. |
| Method Detail |
|---|
java.lang.String[] getFormatNames()
int getHeaderBufSize()
int getStreamStartPosition()
boolean detectHeader(byte[] data)
data - the image header data
true if this analyzer is responsible
for the given image header
ImageInfo getInfo(Configuration configuration,
java.io.InputStream inputStream)
throws java.io.IOException,
InvalidDataException
configuration - the configuration to be usedinputStream - the data source object
java.io.IOException - if an IO error occurs while reading data
from the data source
InvalidDataException - if the image contains invalid data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||