Package org.intermine.web.logic.export
Class ExporterImpl
- java.lang.Object
-
- org.intermine.web.logic.export.ExporterImpl
-
-
Field Summary
-
Fields inherited from interface org.intermine.web.logic.export.Exporter
UNIX_SEPARATOR, WINDOWS_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description ExporterImpl(java.io.OutputStream out, RowFormatter rowFormatter)
Constructor.ExporterImpl(java.io.OutputStream out, RowFormatter rowFormatter, java.lang.String separator, java.util.List<java.lang.String> headers)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canExport(java.util.List<java.lang.Class<?>> clazzes)
This method finds out if result row composed from instances of these classes can be exported with actual implementation of exporter.void
export(java.util.Iterator<? extends java.util.List<ResultElement>> resultIt)
Perform the export with the exporter's defaults in the absence of path collection changes.void
export(java.util.Iterator<? extends java.util.List<ResultElement>> resultIt, java.util.Collection<Path> unionPathCollection, java.util.Collection<Path> newPathCollection)
Do export.int
getWrittenResultsCount()
-
-
-
Constructor Detail
-
ExporterImpl
public ExporterImpl(java.io.OutputStream out, RowFormatter rowFormatter)
Constructor.- Parameters:
out
- output streamrowFormatter
- used row formatter.
-
ExporterImpl
public ExporterImpl(java.io.OutputStream out, RowFormatter rowFormatter, java.lang.String separator, java.util.List<java.lang.String> headers)
Constructor.- Parameters:
out
- output streamrowFormatter
- used row formatter.separator
- line separatorheaders
- if non-null, a list of the column headers which will be written by export()
-
-
Method Detail
-
export
public void export(java.util.Iterator<? extends java.util.List<ResultElement>> resultIt, java.util.Collection<Path> unionPathCollection, java.util.Collection<Path> newPathCollection)
Do export.
-
export
public void export(java.util.Iterator<? extends java.util.List<ResultElement>> resultIt)
Description copied from interface:Exporter
Perform the export with the exporter's defaults in the absence of path collection changes.
-
getWrittenResultsCount
public int getWrittenResultsCount()
- Specified by:
getWrittenResultsCount
in interfaceExporter
- Returns:
- count of written results
-
canExport
public boolean canExport(java.util.List<java.lang.Class<?>> clazzes)
This method finds out if result row composed from instances of these classes can be exported with actual implementation of exporter. Universal exporter.
-
-