public class ProgressiveSerializeToFile extends Object implements PipelineStep
Constructor and Description |
---|
ProgressiveSerializeToFile() |
ProgressiveSerializeToFile(String location) |
Modifier and Type | Method and Description |
---|---|
static void |
addToLinenote(LinenoteBuilder<PipelineStep> linenoteBuilder) |
void |
addToPipeline(PipelineContext pipeline)
Wire step into the pipeline.
|
void |
buffer(int b) |
void |
close()
Close the step.
|
ProgressiveSerialization |
getSerializer() |
void |
init()
Initialize the step.
|
void |
location(String l) |
void |
stats(boolean b) |
String |
toString() |
public ProgressiveSerializeToFile()
public ProgressiveSerializeToFile(String location)
public void location(String l)
public void stats(boolean b)
public void buffer(int 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 ProgressiveSerialization getSerializer()
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)