public static class ExportToolbar.DataExportResourceStreamWriter extends 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()
Gets the mime type of this resource
|
void |
write(OutputStream output)
Writes the exported data to the output stream.
|
close, getInputStream, getLocale, getStyle, getVariation, lastModifiedTime, length, setLocale, setStyle, setVariation
public 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 IResourceStream
getContentType
in class AbstractResourceStreamWriter
IDataExporter.getContentType()
.Copyright © 2006–2021 Apache Software Foundation. All rights reserved.