|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jimageanalyst.AbstractImageAnalyzer
public abstract class AbstractImageAnalyzer
Abstract class for making analyzer implementations easier.
| Constructor Summary | |
|---|---|
AbstractImageAnalyzer(java.lang.String[] formatNames,
java.lang.String mimeType,
int headerBufSize,
int streamStartPosition)
Initialize the AbstractImageAnalyzer with all required fields. |
|
| Method Summary | |
|---|---|
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. |
java.lang.String |
getMimeType()
Returns the supported mime-type. |
int |
getStreamStartPosition()
Returns the position where this analyzer wants to start reading meta data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jimageanalyst.ImageAnalyzer |
|---|
detectHeader, getInfo |
| Constructor Detail |
|---|
public AbstractImageAnalyzer(java.lang.String[] formatNames,
java.lang.String mimeType,
int headerBufSize,
int streamStartPosition)
formatNames - the format names supported by this analyzermimeType - the mime-type supported by this analyzerheaderBufSize - the size of the header required for testing if
this analyzer is responsible for the given imagestreamStartPosition - the stream position where the analyzer
wants to start reading| Method Detail |
|---|
public java.lang.String[] getFormatNames()
getFormatNames in interface ImageAnalyzerpublic java.lang.String getMimeType()
public int getStreamStartPosition()
getStreamStartPosition in interface ImageAnalyzerpublic int getHeaderBufSize()
getHeaderBufSize in interface ImageAnalyzer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||