Package org.kuali.rice.krad.bo
Interface Exporter
public interface Exporter
An Exporter provides the ability to export a list of data objects to a supported export format.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionvoidexport(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream) Exports the List of BusinessObjects to the specified ExportFormat.getSupportedFormats(Class<?> dataObjectClass) Returns a List of ExportFormats supported by this Exporter for the given DataOject class.
-
Method Details
-
export
void export(Class<?> dataObjectClass, List<? extends Object> dataObjects, String exportFormat, OutputStream outputStream) throws IOException, ExportNotSupportedException Exports the List of BusinessObjects to the specified ExportFormat.The resulting output of the export operation should be written to the given OutputStream
- Parameters:
dataObjectClass- the type of DataObjects being exporteddataObjects- a List of DataObjects to exportexportFormat- the export format in which to export the DataObjectsoutputStream- the OutputStream to write the exported data to- Throws:
IOException- if the process encounters an I/O issueExportNotSupportedException- if the given ExportFormat is not supported
-
getSupportedFormats
Returns a List of ExportFormats supported by this Exporter for the given DataOject class.- Parameters:
dataObjectClass- the class of the DataObjects being exported- Returns:
- a List of supported ExportFormats
-