Package de.hybris.platform.impex.jalo
Interface ImpExFile
-
- All Known Implementing Classes:
ImpExCsvFile,ImpExZip
public interface ImpExFileFiles resulting from an export, e.g. ImpExZip, should implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes theOutputStreamassociated with this instance.java.io.FilegetFile()Returns theFileobject associated with this instance.java.lang.StringgetFileExtension()Returns the file extension of the file associated with this instance.java.lang.StringgetMimeType()Returns the corresponding mime type for the file associated with this instance.java.io.OutputStreamgetOutputStream()Returns theOutputStreamassociated with this instance.
-
-
-
Method Detail
-
getOutputStream
java.io.OutputStream getOutputStream()
Returns theOutputStreamassociated with this instance.- Returns:
- the
OutputStreamassociated with this instance
-
getMimeType
java.lang.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
java.io.File getFile()
Returns theFileobject associated with this instance.- Returns:
- the file associated with the current instance
-
close
void close() throws java.io.IOExceptionCloses theOutputStreamassociated with this instance.- Throws:
java.io.IOException- if any error occur while closing the stream
-
getFileExtension
java.lang.String getFileExtension()
Returns the file extension of the file associated with this instance.- Returns:
- the file extension of the file associated with this instance
-
-