public class ToLines extends Object implements PipelineStep
BufferedReader.readLine()
: either \n
, \r
or a sequence of
\r\n
.Constructor and Description |
---|
ToLines() |
Modifier and Type | Method and Description |
---|---|
static void |
addToLinenote(LinenoteBuilder<PipelineStep> linenoteBuilder) |
void |
addToPipeline(PipelineContext pipeline)
Wire step into the pipeline.
|
Iterator<String> |
getIterator() |
void |
init()
Initialize the step.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public Reader reader
public void addToPipeline(PipelineContext pipeline)
PipelineStep
PipelineContext.addStep(com.chemaxon.overlap.cli.util.pipeline.PipelineStep)
PipelineStep.init()
.PipelineStep.init()
.PipelineContext
reference this method is side effect freeaddToPipeline
in interface PipelineStep
pipeline
- Target pipeline.public void init() throws Exception
PipelineStep
PipelineStep.addToPipeline(com.chemaxon.overlap.cli.util.pipeline.PipelineContext)
will be invoked before
this method.PipelineStep.close()
is expected to be invoked sometimes later, regardless of possible error(s) thrown.init
in interface PipelineStep
Exception
- In case of initialization failurepublic static void addToLinenote(LinenoteBuilder<PipelineStep> linenoteBuilder)