org.intermine.web.logic.export
Interface Exporter

All Known Implementing Classes:
ExcelExporter, ExporterImpl

public interface Exporter

Simple exporter interface. Objects implementing this interface are able to make export.


Field Summary
static java.lang.String UNIX_SEPARATOR
          Windows line separator only LF
static java.lang.String WINDOWS_SEPARATOR
          Windows line separator CR+LF
 
Method Summary
 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>> it)
          Do export.
 int getWrittenResultsCount()
           
 

Field Detail

WINDOWS_SEPARATOR

static final java.lang.String WINDOWS_SEPARATOR
Windows line separator CR+LF

See Also:
Constant Field Values

UNIX_SEPARATOR

static final java.lang.String UNIX_SEPARATOR
Windows line separator only LF

See Also:
Constant Field Values
Method Detail

export

void export(java.util.Iterator<? extends java.util.List<ResultElement>> it)
Do export.

Parameters:
it - iterator over stuff to be exported

canExport

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.

Parameters:
clazzes - classes in row
Returns:
true if result row can be exported or false

getWrittenResultsCount

int getWrittenResultsCount()
Returns:
count of written results