Package de.hybris.platform.impex.jalo
Class ImpExCsvFile
java.lang.Object
de.hybris.platform.impex.jalo.ImpExCsvFile
- All Implemented Interfaces:
ImpExFile
The
ImpExCsvFile class is intended to be used for single file data export.-
Constructor Summary
ConstructorsConstructorDescriptionImpExCsvFile(String fileName) Creates a newImpExCsvFileinstance with a corresponding file namedfileName. -
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.
-
Constructor Details
-
ImpExCsvFile
- Throws:
IOException
-
ImpExCsvFile
Creates a newImpExCsvFileinstance with a corresponding file namedfileName.- Parameters:
fileName- name of the file associated with thisImpExCsvFileinstance.- Throws:
IOException- if any errors occur while opening files and streams associated with thisImpExCsvFileinstance.
-
-
Method Details
-
getOutputStream
Description copied from interface:ImpExFileReturns theOutputStreamassociated with this instance.- Specified by:
getOutputStreamin interfaceImpExFile- Returns:
- the
OutputStreamassociated with this instance
-
close
Description copied from interface:ImpExFileCloses theOutputStreamassociated with this instance.- Specified by:
closein interfaceImpExFile- Throws:
IOException- if any error occur while closing the stream
-
getFile
Description copied from interface:ImpExFileReturns theFileobject associated with this instance. -
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
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
-