|
org.netbeans.modules.extexecution/2 1.25.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InputReader
This interface represents abstraction for reading characters. It allows custom processing of such characters through the given processor.
For safe usage in InputReaderTask
implementation of this
interface has to be responsive to interruption.
Method Summary | |
---|---|
void |
close()
Closes the reader releasing the resources held by it. |
int |
readInput(InputProcessor processor)
Reads some input and process it through the processor (if any). |
Method Detail |
---|
int readInput(@NullAllowed InputProcessor processor) throws IOException
Implementation of this method has to be non blocking
for safe usage in InputReaderTask
.
processor
- consumer of read characters, mey be null
IOException
- if any read or process error occursvoid close() throws IOException
close
in interface Closeable
IOException
|
org.netbeans.modules.extexecution/2 1.25.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |