Package jp.cssj.cti2.results
Class DirectoryResults
java.lang.Object
jp.cssj.cti2.results.DirectoryResults
- All Implemented Interfaces:
Results
A Results implementation that outputs multiple results to a directory.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDirectoryResults(File dir, String prefix, String suffix) Constructs an object with the specified output directory and file name prefix and suffix. -
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
-
dir
-
prefix
-
suffix
-
counter
protected int counter
-
-
Constructor Details
-
DirectoryResults
Constructs an object with the specified output directory and file name prefix and suffix.Outputs files to dir, with file names formed by concatenating prefix, a sequence number starting at 1, and suffix.
- Parameters:
dir- The output directory.prefix- The string to prepend to the file name.suffix- The string to append to the file name.
-
-
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.
-