Package pl.poznan.put.interfaces
Interface Exportable
public interface Exportable
A set of methods that any kind of result must implement to be exported to output file.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
export
(OutputStream stream) Exports the result to a provided output stream.Generates a useful file name for this kind of exported data.
-
Method Details
-
export
Exports the result to a provided output stream.- Parameters:
stream
- Where to export the data to.- Throws:
IOException
- When it was impossible to export the data.
-
suggestName
File suggestName()Generates a useful file name for this kind of exported data.- Returns:
- An instance of
File
depicting a file name.
-