Class CSVHttpExporter
- java.lang.Object
-
- org.intermine.web.logic.export.http.HttpExporterBase
-
- org.intermine.web.logic.export.http.StandardHttpExporter
-
- org.intermine.web.logic.export.http.CSVHttpExporter
-
- All Implemented Interfaces:
TableHttpExporter
public class CSVHttpExporter extends StandardHttpExporter
Exporter that exports table with results in comma separated format.- Author:
- Jakub Kulaviak
-
-
Field Summary
-
Fields inherited from class org.intermine.web.logic.export.http.StandardHttpExporter
LOG
-
-
Constructor Summary
Constructors Constructor Description CSVHttpExporter()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Exporter
getExporter(java.io.OutputStream out, java.lang.String separator, java.util.List<java.lang.String> headers)
Do the export.protected void
setResponseHeader(javax.servlet.http.HttpServletResponse response, boolean doGzip)
Sets header and content type of result in response.-
Methods inherited from class org.intermine.web.logic.export.http.StandardHttpExporter
canExport, export, getInitialExportPaths
-
Methods inherited from class org.intermine.web.logic.export.http.HttpExporterBase
getResultRows
-
-
-
-
Method Detail
-
setResponseHeader
protected void setResponseHeader(javax.servlet.http.HttpServletResponse response, boolean doGzip)
Sets header and content type of result in response.- Specified by:
setResponseHeader
in classStandardHttpExporter
- Parameters:
response
- responsedoGzip
- whether to compress the stream
-
getExporter
protected Exporter getExporter(java.io.OutputStream out, java.lang.String separator, java.util.List<java.lang.String> headers)
Do the export.- Specified by:
getExporter
in classStandardHttpExporter
- Parameters:
out
- output streamseparator
- line separatorheaders
- if non-null, a list of the column headers which will be written by export()- Returns:
- exporter that will perform the business logic of export.
-
-