public static final class XProcOutput.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
XProcOutput |
build()
Builds the xproc output object
|
XProcOutput.Builder |
withOutput(String port,
com.google.common.base.Supplier<Result> result)
With output.
|
public XProcOutput.Builder withOutput(String port, com.google.common.base.Supplier<Result> result)
port
- the portresult
- the result, as a supplier of Result objects
- If the supplier returns an object of type StreamResult the output
document is written directly to it.
- Otherwise, if the supplier returns a Result with a systemId ending
with '/', it is seen as a directory where all the output documents are
to be written to. It is an error if the supplier does not always
return the same Result.
- Otherwise, if the supplier always returns the same Result with a
non-empty systemId (not ending with '/'), all output document as of
the second one are written to paths derived from the systemId.
- In all other cases the document is written to the path determined by
the systemId. It is an error if the systemId is empty or null, or if
the same systemId is supplied more than once.
- If no result supplier, or null, is provided, output documents are
written to automatically generated paths.public XProcOutput build()
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.