public class TextFileInput extends Object implements PipelineStep
Constructor and Description |
---|
TextFileInput() |
TextFileInput(String location) |
Modifier and Type | Method and Description |
---|---|
static void |
addToLinenote(LinenoteBuilder<PipelineStep> linenoteBuilder) |
void |
addToPipeline(PipelineContext pipeline)
Wire step into the pipeline.
|
void |
autogzip(boolean g) |
void |
buffer(int b) |
void |
charset(String c) |
void |
close()
Close the step.
|
Reader |
getReader()
Get represented
Reader . |
void |
init()
Initialize the step.
|
void |
location(String l) |
void |
stats(boolean b) |
String |
toString() |
public TextFileInput()
public TextFileInput(String location)
public void location(String l)
public void charset(String c)
public void buffer(int b)
public void autogzip(boolean g)
public void stats(boolean b)
public void init() throws FileNotFoundException, IOException
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
FileNotFoundException
IOException
public void close() throws IOException
PipelineStep
PipelineStep.init()
is guaranteed to
be invoked before. Note that it is possible that PipelineStep.init()
and PipelineStep.close()
methods are not invoked
during the life cycle of an implementing instance.close
in interface PipelineStep
IOException
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 static void addToLinenote(LinenoteBuilder<PipelineStep> linenoteBuilder)