public interface OutputFormat
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContentType()
The content type of the output.
|
java.lang.String |
getFileSuffix()
The file suffix to use when writing to a file.
|
void |
print(java.lang.String jobId,
PJsonObject spec,
Configuration config,
java.io.File configDir,
java.io.File taskDirectory,
java.io.OutputStream outputStream)
Performs the print and writes to the report in the correct format to the outputStream.
|
java.lang.String getContentType()
java.lang.String getFileSuffix()
void print(java.lang.String jobId,
PJsonObject spec,
Configuration config,
java.io.File configDir,
java.io.File taskDirectory,
java.io.OutputStream outputStream)
throws java.lang.Exception
jobId - the job IDspec - the data from the client, required for writing.config - the configuration object representing the server side configuration.configDir - the directory that contains the configuration, used for resolving resources like images etc...taskDirectory - the temporary directory for this printing task.outputStream - the stream to write the result tojava.lang.Exception