public class MapExportOutputFormat extends java.lang.Object implements OutputFormat
| Constructor and Description |
|---|
MapExportOutputFormat() |
| 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.
|
void |
setContentType(java.lang.String contentType) |
void |
setFileSuffix(java.lang.String fileSuffix) |
public final void setContentType(java.lang.String contentType)
public final java.lang.String getContentType()
OutputFormatgetContentType in interface OutputFormatpublic final void setFileSuffix(java.lang.String fileSuffix)
public final java.lang.String getFileSuffix()
OutputFormatgetFileSuffix in interface OutputFormatpublic final 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
OutputFormatprint in interface OutputFormatjobId - 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