|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- Type of items returned in List by process(java.io.InputStream)
method.public interface Processor<T>
Interface of any class that can take an InputStream and produce List
of elements T
from it. The class must work as a singleton, subsequent calls to
process(InputStream)
will be on the same instance.
Method Summary | |
---|---|
String |
getExtension()
Which extension can this processor process. |
FolderType |
getFolder()
Which folder does this processor operate on. |
Class<?> |
getResultType()
Get Class of the type this processor returns by process method within List . |
List<T> |
process(InputStream s)
Returns the List of type defined for this processor which represents the input. |
boolean |
processUndefined()
Whether this processor can process also different extensions than that specified in getExtension() . |
Method Detail |
---|
FolderType getFolder()
String getExtension()
boolean processUndefined()
getExtension()
.
getExtension()
reports. False otherwise.List<T> process(InputStream s) throws InterruptedException
List
of type defined for this processor which represents the input.
s
- Input of any arbitrary type.
InterruptedException
- When user interrupts the processing operation at any moment.Class<?> getResultType()
Class
of the type this processor returns by process method within List
.
Class
of the type this processor returns by process method within List
.
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |