Package de.hybris.platform.impex.jalo
Interface ImpExFile
- All Known Implementing Classes:
ImpExCsvFile,ImpExZip
public interface ImpExFile
Files resulting from an export, e.g. ImpExZip, should implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes theOutputStreamassociated with this instance.getFile()Returns theFileobject associated with this instance.Returns the file extension of the file associated with this instance.Returns the corresponding mime type for the file associated with this instance.Returns theOutputStreamassociated with this instance.
-
Method Details
-
getOutputStream
OutputStream getOutputStream()Returns theOutputStreamassociated with this instance.- Returns:
- the
OutputStreamassociated with this instance
-
getMimeType
String getMimeType()Returns the corresponding mime type for the file associated with this instance.- Returns:
- the corresponding mime type of the file associated with this instance
-
getFile
File getFile()Returns theFileobject associated with this instance.- Returns:
- the file associated with the current instance
-
close
Closes theOutputStreamassociated with this instance.- Throws:
IOException- if any error occur while closing the stream
-
getFileExtension
String getFileExtension()Returns the file extension of the file associated with this instance.- Returns:
- the file extension of the file associated with this instance
-