Class ResourceDirectoryResults

java.lang.Object
jp.cssj.cti2.results.ResourceDirectoryResults
All Implemented Interfaces:
Results

public class ResourceDirectoryResults extends Object implements 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    end()
    Completes the sequence of data outputs.
    boolean
    Returns true if the next result can be output.
    net.zamasoft.zstream.io.FragmentedOutput
    nextBuilder(net.zamasoft.zstream.resolver.SourceMetadata metadata)
    Returns a builder for constructing the next processing result.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • hasNext

      public boolean hasNext()
      Description copied from interface: Results
      Returns true if the next result can be output.
      Specified by:
      hasNext in interface Results
      Returns:
      true if the next result can be output; false otherwise.
    • nextBuilder

      public net.zamasoft.zstream.io.FragmentedOutput nextBuilder(net.zamasoft.zstream.resolver.SourceMetadata metadata) throws IOException
      Description copied from interface: Results
      Returns a builder for constructing the next processing result.
      Specified by:
      nextBuilder in interface Results
      Returns:
      The data builder object.
      Throws:
      IOException
    • end

      public void end()
      Description copied from interface: Results
      Completes 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 transcode calls, but is called once at the final join.

      Specified by:
      end in interface Results