public static class ExportToolbar.DataExportResourceStreamWriter extends org.apache.wicket.util.resource.AbstractResourceStreamWriter
IResourceStreamWriter which writes the exportable data from a table to an output stream.| Constructor and Description |
|---|
ExportToolbar.DataExportResourceStreamWriter(IDataExporter dataExporter,
DataTable<?,?> dataTable)
Creates a new instance using the provided
IDataExporter to export data. |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType() |
void |
write(OutputStream output)
Writes the exported data to the output stream.
|
close, getInputStream, getLocale, getStyle, getVariation, lastModifiedTime, length, setLocale, setStyle, setVariationpublic ExportToolbar.DataExportResourceStreamWriter(IDataExporter dataExporter, DataTable<?,?> dataTable)
IDataExporter to export data.dataExporter - The IDataExporter to use to export data.dataTable - The DataTable from which to export.public void write(OutputStream output) throws IOException
exportData(org.apache.wicket.extensions.markup.html.repeater.data.table.DataTable, org.apache.wicket.extensions.markup.html.repeater.data.table.export.IDataExporter, java.io.OutputStream).output - The output stream to which to export the data.IOException - if an error occurs.public String getContentType()
This method returns the content type returned by IDataExporter.getContentType().
getContentType in interface org.apache.wicket.util.resource.IResourceStreamgetContentType in class org.apache.wicket.util.resource.AbstractResourceStreamWriterIDataExporter.getContentType().Copyright © 2006–2015 Apache Software Foundation. All rights reserved.