|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jimageanalyst.AbstractImageAnalyzer
org.jimageanalyst.analyzer.AnalyzePnm
public class AnalyzePnm
Analyzer for PNM (PBM, PGM, PPM) images.
| Constructor Summary | |
|---|---|
AnalyzePnm()
Initialize this analyzer. |
|
| Method Summary | |
|---|---|
boolean |
detectHeader(byte[] data)
Detect the image type. |
ImageInfo |
getInfo(Configuration configuration,
java.io.InputStream inputStream)
Extracts the meta information for the given image. |
java.lang.String |
readLine(java.io.InputStream is)
Reads a line (everything until a line-feed) from the given InputStream. |
java.lang.String |
readLine(java.io.InputStream is,
java.lang.Appendable appendable)
Reads a line (everything until a line-feed) from the given InputStream and write it to the specified appendable. |
| Methods inherited from class org.jimageanalyst.AbstractImageAnalyzer |
|---|
getFormatNames, getHeaderBufSize, getMimeType, getStreamStartPosition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnalyzePnm()
| Method Detail |
|---|
public boolean detectHeader(byte[] data)
data - the image header data
true if this analyzer is responsible
for the given image header
public 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
public java.lang.String readLine(java.io.InputStream is)
throws java.io.IOException
is - the InputStream to read from
java.io.IOException - if an I/O error occurs
public java.lang.String readLine(java.io.InputStream is,
java.lang.Appendable appendable)
throws java.io.IOException
is - the InputStream to read fromappendable - the appendable to append read data
java.io.IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||