public interface InputProcessor extends Closeable, AutoCloseable
InputReader
.
When the implementation is used just by single InputReader it does not have to be thread safe.
InputReader
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the processor releasing the resources held by it.
|
void |
processInput(char[] chars)
Processes the characters.
|
void |
reset()
Notifies the processor that it should reset its state.
|
void processInput(@NonNull char[] chars) throws IOException
chars
- characters to processIOException
- if any processing error occursvoid reset() throws IOException
The circumstances when this method is called must be defined
by the particular InputReader
.
InputReaders.forFileInputProvider(org.netbeans.api.extexecution.base.input.InputReaders.FileInput.Provider)
when the provided file is changed.
IOException
- if error occurs while resetingvoid close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
- if error occurs while closing