Package jp.cssj.cti2.results
Class ResourceDirectoryResults
java.lang.Object
jp.cssj.cti2.results.ResourceDirectoryResults
- All Implemented Interfaces:
Results
Stores multi-part results at the relative URI supplied in each result's
metadata. Unlike
DirectoryResults, this preserves resource paths
such as pages/0001.svg and assets/fonts/font-0001.woff2.
The URI is treated as untrusted input. Absolute paths, traversal, fragments, queries, duplicate names and existing targets are rejected.
A result numbered by the engine (#1, #2... — one page of
PNG or JPEG output each) is stored as page-0001.png and so on, the
extension taken from its media type (2026-10-04; the CLI's -outdir
refused image output as an unsafe URI).
- Since:
- 2.2
-
Constructor Summary
Constructors -
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 metadata) Returns a builder for constructing the next processing result.
-
Constructor Details
-
ResourceDirectoryResults
- Throws:
IOException
-
-
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 metadata) throws IOException Description copied from interface:ResultsReturns a builder for constructing the next processing result.- Specified by:
nextBuilderin interfaceResults- Returns:
- The data builder object.
- Throws:
IOException
-
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.
-