public static class JobResultSet.Builder extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
addResult(String port,
JobResult result) |
JobResultSet.Builder |
addResult(String port,
String idx,
File path,
String mediaType) |
JobResultSet |
build() |
public Builder()
public Builder(Script script)
protected void addResult(String port, JobResult result) throws IllegalArgumentException
IllegalArgumentException
public JobResultSet.Builder addResult(String port, String idx, File path, String mediaType) throws IllegalArgumentException
IllegalArgumentException
- if the script does not have the specified output
port, or the port can not produce a sequence of documents and multiple
documents are supplied.public JobResultSet build()
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.