org.apache.commons.pipeline.stage
Class InputStreamLineBreakStage

java.lang.Object
  extended by org.apache.commons.pipeline.stage.BaseStage
      extended by org.apache.commons.pipeline.stage.InputStreamLineBreakStage
All Implemented Interfaces:
Stage

public class InputStreamLineBreakStage
extends BaseStage

Breaks up an InputStream by line and exqueues each resulting line.


Field Summary
 
Fields inherited from class org.apache.commons.pipeline.stage.BaseStage
context
 
Constructor Summary
InputStreamLineBreakStage()
          Creates a new instance of InputStreamLineBreakStage
InputStreamLineBreakStage(boolean ignoringBlankLines)
          Creates a new instance of InputStreamLineBreakStage
 
Method Summary
 boolean isIgnoringBlankLines()
          Getter for property ignoreBlankLines.
 void process(Object obj)
          The only operation performed by this implementation of process() is to feed the specified object to the downstream feeder.
 void setIgnoringBlankLines(boolean ignoringBlankLines)
          Specifies that this stage will not exqueue blank lines.
 
Methods inherited from class org.apache.commons.pipeline.stage.BaseStage
emit, emit, init, postprocess, preprocess, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamLineBreakStage

public InputStreamLineBreakStage()
Creates a new instance of InputStreamLineBreakStage


InputStreamLineBreakStage

public InputStreamLineBreakStage(boolean ignoringBlankLines)
Creates a new instance of InputStreamLineBreakStage

Method Detail

process

public void process(Object obj)
             throws StageException
Description copied from class: BaseStage
The only operation performed by this implementation of process() is to feed the specified object to the downstream feeder. This method should be overridden to provide processing capability for the stage.

Specified by:
process in interface Stage
Overrides:
process in class BaseStage
Parameters:
obj - Object to be passed to downstream pipeline.
Throws:
StageException - an Exception thrown by an overriding implementation should be wrapped in a StageException

isIgnoringBlankLines

public boolean isIgnoringBlankLines()
Getter for property ignoreBlankLines.

Returns:
Value of property ignoreBlankLines.

setIgnoringBlankLines

public void setIgnoringBlankLines(boolean ignoringBlankLines)
Specifies that this stage will not exqueue blank lines.

Parameters:
ignoreBlankLines - New value of property ignoreBlankLines.


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.