org.netbeans.modules.extexecution/2 1.25.1

org.netbeans.api.extexecution.input
Interface InputProcessor

All Superinterfaces:
Closeable

public interface InputProcessor
extends Closeable

Processes chars read by InputReader.

When the implementation is used just by single InputReader it does not have to be thread safe.

See Also:
InputReader

Method Summary
 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.
 

Method Detail

processInput

void processInput(@NonNull
                  char[] chars)
                  throws IOException
Processes the characters.

Parameters:
chars - characters to process
Throws:
IOException - if any processing error occurs

reset

void reset()
           throws IOException
Notifies the processor that it should reset its state.

The circumstances when this method is called must be defined by the particular InputReader.

For example reset is called by reader returned from InputReaders.forFileInputProvider(org.netbeans.api.extexecution.input.InputReaders.FileInput.Provider) when the provided file is changed.

Throws:
IOException - if error occurs while reseting

close

void close()
           throws IOException
Closes the processor releasing the resources held by it.

Specified by:
close in interface Closeable
Throws:
IOException

org.netbeans.modules.extexecution/2 1.25.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.