Package de.hybris.platform.impex.jalo
Class ImpExCsvFile
- java.lang.Object
-
- de.hybris.platform.impex.jalo.ImpExCsvFile
-
-
Constructor Summary
Constructors Constructor Description ImpExCsvFile()ImpExCsvFile(java.lang.String fileName)Creates a newImpExCsvFileinstance with a corresponding file namedfileName.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
ImpExCsvFile
public ImpExCsvFile() throws java.io.IOException- Throws:
java.io.IOException
-
ImpExCsvFile
public ImpExCsvFile(java.lang.String fileName) throws java.io.IOExceptionCreates a newImpExCsvFileinstance with a corresponding file namedfileName.- Parameters:
fileName- name of the file associated with thisImpExCsvFileinstance.- Throws:
java.io.IOException- if any errors occur while opening files and streams associated with thisImpExCsvFileinstance.
-
-
Method Detail
-
getOutputStream
public java.io.OutputStream getOutputStream()
Description copied from interface:ImpExFileReturns theOutputStreamassociated with this instance.- Specified by:
getOutputStreamin interfaceImpExFile- Returns:
- the
OutputStreamassociated with this instance
-
close
public void close() throws java.io.IOExceptionDescription copied from interface:ImpExFileCloses theOutputStreamassociated with this instance.
-
getFile
public java.io.File getFile()
Description copied from interface:ImpExFileReturns theFileobject associated with this instance.
-
getMimeType
public java.lang.String getMimeType()
Description copied from interface:ImpExFileReturns the corresponding mime type for the file associated with this instance.- Specified by:
getMimeTypein interfaceImpExFile- Returns:
- the corresponding mime type of the file associated with this instance
-
getFileExtension
public java.lang.String getFileExtension()
Description copied from interface:ImpExFileReturns the file extension of the file associated with this instance.- Specified by:
getFileExtensionin interfaceImpExFile- Returns:
- the file extension of the file associated with this instance
-
-