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.

Since:
2.2
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    end()
    一連のデータ出力を完了します。
    boolean
    次の結果を出力可能であればtrueを返します。
    net.zamasoft.zstream.io.FragmentedOutput
    nextBuilder(net.zamasoft.zstream.resolver.SourceMetadata metadata)
    次の処理結果を構築するためのビルダを返します。

    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
      次の結果を出力可能であればtrueを返します。
      Specified by:
      hasNext in interface Results
      Returns:
      次の結果を出力可能であればtrueそうでなければfalse。
    • nextBuilder

      public net.zamasoft.zstream.io.FragmentedOutput nextBuilder(net.zamasoft.zstream.resolver.SourceMetadata metadata) throws IOException
      Description copied from interface: Results
      次の処理結果を構築するためのビルダを返します。
      Specified by:
      nextBuilder in interface Results
      Returns:
      データ構築オブジェクト。
      Throws:
      IOException
    • end

      public void end()
      Description copied from interface: Results
      一連のデータ出力を完了します。

      通常の変換では全結果のビルダが閉じられた後に1回呼ばれます。連続変換では 個々のtranscodeでは呼ばれず、最終的なjoinで1回呼ばれます。

      Specified by:
      end in interface Results