public class ScriptInput extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ScriptInput.Builder |
| Modifier and Type | Method and Description |
|---|---|
Iterable<Source> |
getInput(String port)
Get all documents on an input port.
|
Iterable<String> |
getOption(String name)
Get the sequence of values for an option.
|
JobResources |
getResources()
Get the resource collection.
|
ScriptInput |
storeToDisk() |
ScriptInput |
storeToDisk(File baseDir)
Ensure all documents on input ports are stored to disk
|
public Iterable<Source> getInput(String port)
Source should only be consumed once.public JobResources getResources()
public ScriptInput storeToDisk(File baseDir) throws IOException
baseDir - The directory does not have to exist yet, and may be
null, in which case a temporary directory will be
created.IOExceptionpublic ScriptInput storeToDisk() throws IOException
IOExceptionCopyright © 2010–2025 The DAISY Consortium. All rights reserved.