|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Exporter
An Exporter provides the ability to export a List of BusinessObjects to a supported ExportFormat.
Method Summary | |
---|---|
void |
export(Class<? extends BusinessObject> businessObjectClass,
List<BusinessObject> data,
String exportFormat,
OutputStream outputStream)
Exports the List of BusinessObjects to the specified ExportFormat. |
List<String> |
getSupportedFormats(Class<? extends BusinessObject> businessObjectClass)
Returns a List of ExportFormats supported by this Exporter for the given BusinessOject class. |
Method Detail |
---|
void export(Class<? extends BusinessObject> businessObjectClass, List<BusinessObject> data, String exportFormat, OutputStream outputStream) throws IOException, ExportNotSupportedException
businessObjectClass
- the type of BusinessObjects being exporteddata
- a List of BusinessObjects to exportexportFormat
- the export format in which to export the BusinessObjectsoutputStream
- the OutputStream to write the exported data to
IOException
- if the process encounters an I/O issue
ExportNotSupportedException
- if the given ExportFormat is not supportedList<String> getSupportedFormats(Class<? extends BusinessObject> businessObjectClass)
businessObjectClass
- the class of the BusinessObjects being exported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |