public class DataExporter extends Object implements Exporter
| Constructor and Description |
|---|
DataExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected ExportDataSet |
buildExportDataSet(Class<?> dataObjectClass,
List<? extends Object> dataObjects)
Builds the ExportDataSet based on the BusinessObjects passed in.
|
void |
export(Class<?> dataObjectClass,
List<? extends Object> dataObjects,
String exportFormat,
OutputStream outputStream)
Export the given List of Objects of the specified type to XML.
|
List<String> |
getSupportedFormats(Class<?> dataObjectClass)
Returns a List of ExportFormats supported by this Exporter for the given
DataOject class.
|
public DataExporter()
public List<String> getSupportedFormats(Class<?> dataObjectClass)
ExportergetSupportedFormats in interface ExporterdataObjectClass - the class of the DataObjects being exportedExporter.getSupportedFormats(java.lang.Class)protected ExportDataSet buildExportDataSet(Class<?> dataObjectClass, List<? extends Object> dataObjects)
public void export(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream) throws IOException, ExportNotSupportedException
export in interface ExporterdataObjectClass - the type of DataObjects being exportedexportFormat - the export format in which to export the DataObjectsoutputStream - the OutputStream to write the exported data toIOException - if the process encounters an I/O issueExportNotSupportedException - if the given ExportFormat is not supportedExporter.export(java.lang.Class, java.util.List, java.lang.String, java.io.OutputStream)Copyright © 2005–2016 The Kuali Foundation. All rights reserved.