com.github.dandelion.datatables.core.export
Class CsvExport

java.lang.Object
  extended by com.github.dandelion.datatables.core.export.CsvExport
All Implemented Interfaces:
DatatablesExport

public class CsvExport
extends Object
implements DatatablesExport

Default class used to export in the CSV format.

Author:
Thibault Duchateau

Constructor Summary
CsvExport()
           
 
Method Summary
 void initExport(HtmlTable table)
           Initialize the implementation classes with all needed informations.
 void processExport(OutputStream output)
          The main export method that is called by Dandelion-datatables in charge of writing in the output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsvExport

public CsvExport()
Method Detail

initExport

public void initExport(HtmlTable table)
Description copied from interface: DatatablesExport

Initialize the implementation classes with all needed informations.

Usually, only the HtmlTable is needed, because it already contains lots of information.

Specified by:
initExport in interface DatatablesExport
Parameters:
table - The HTML table containing all needed information for the export.

processExport

public void processExport(OutputStream output)
Description copied from interface: DatatablesExport
The main export method that is called by Dandelion-datatables in charge of writing in the output.

Specified by:
processExport in interface DatatablesExport
Parameters:
output - The stream to fill and which will override the default response during export.


Copyright © 2013–2014 Dandelion Project. All rights reserved.