Package jp.cssj.cti2.results
Class SingleResult
java.lang.Object
jp.cssj.cti2.results.SingleResult
- All Implemented Interfaces:
Results
A Results implementation that outputs a single result.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.zamasoft.zstream.io.FragmentedOutputThe data builder object that receives output. -
Constructor Summary
ConstructorsConstructorDescriptionSingleResult(File file) Outputs data to a file.SingleResult(OutputStream out) Outputs data to an OutputStream.SingleResult(net.zamasoft.zstream.io.FragmentedOutput builder) Outputs to a single data builder object. -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Completes the sequence of data outputs.booleanhasNext()Returns true if the next result can be output.net.zamasoft.zstream.io.FragmentedOutputnextBuilder(net.zamasoft.zstream.resolver.SourceMetadata metaSource) Returns a builder for constructing the next processing result.
-
Field Details
-
builder
protected net.zamasoft.zstream.io.FragmentedOutput builderThe data builder object that receives output.
-
-
Constructor Details
-
SingleResult
public SingleResult(net.zamasoft.zstream.io.FragmentedOutput builder) Outputs to a single data builder object.- Parameters:
builder-
-
SingleResult
Outputs data to an OutputStream.- Parameters:
out-
-
SingleResult
Outputs data to a file.- Parameters:
file-
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:ResultsReturns true if the next result can be output. -
nextBuilder
public net.zamasoft.zstream.io.FragmentedOutput nextBuilder(net.zamasoft.zstream.resolver.SourceMetadata metaSource) Description copied from interface:ResultsReturns a builder for constructing the next processing result.- Specified by:
nextBuilderin interfaceResults- Returns:
- The data builder object.
-
end
public void end()Description copied from interface:ResultsCompletes the sequence of data outputs.For a normal conversion, this is called once after all result builders are closed. For continuous conversion, it is not called for individual
transcodecalls, but is called once at the finaljoin.
-