org.netbeans.modules.extexecution/2 1.25.1

org.netbeans.api.extexecution.input
Interface LineProcessor

All Superinterfaces:
Closeable

public interface LineProcessor
extends Closeable

Processes the lines fetched by InputReader usually with help of the InputProcessors.bridge(LineProcessor).

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

See Also:
InputProcessors.bridge(LineProcessor), InputReader

Method Summary
 void close()
          Closes the processor releasing the resources held by it.
 void processLine(String line)
          Processes the line.
 void reset()
          Notifies the processor that it should reset its state.
 

Method Detail

processLine

void processLine(@NonNull
                 String line)
Processes the line.

Parameters:
line - the line to process

reset

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

The circumstances when this method is called must be defined by the code using this class.

For example processor created with InputProcessors.bridge(LineProcessor) delegates any call to InputProcessor.reset() to this method.


close

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

Specified by:
close in interface Closeable

org.netbeans.modules.extexecution/2 1.25.1

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