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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes theOutputStream
associated with this instance.java.io.File
getFile()
Returns theFile
object associated with this instance.java.lang.String
getFileExtension()
Returns the file extension of the file associated with this instance.java.lang.String
getMimeType()
Returns the corresponding mime type for the file associated with this instance.java.io.OutputStream
getOutputStream()
Returns theOutputStream
associated with this instance.
-
-
-
Method Detail
-
getOutputStream
java.io.OutputStream getOutputStream()
Returns theOutputStream
associated with this instance.- Returns:
- the
OutputStream
associated 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 theFile
object associated with this instance.- Returns:
- the file associated with the current instance
-
close
void close() throws java.io.IOException
Closes theOutputStream
associated 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
-
-