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 newImpExCsvFile
instance with a corresponding file namedfileName
.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
ImpExCsvFile
public ImpExCsvFile() throws java.io.IOException
- Throws:
java.io.IOException
-
ImpExCsvFile
public ImpExCsvFile(java.lang.String fileName) throws java.io.IOException
Creates a newImpExCsvFile
instance with a corresponding file namedfileName
.- Parameters:
fileName
- name of the file associated with thisImpExCsvFile
instance.- Throws:
java.io.IOException
- if any errors occur while opening files and streams associated with thisImpExCsvFile
instance.
-
-
Method Detail
-
getOutputStream
public java.io.OutputStream getOutputStream()
Description copied from interface:ImpExFile
Returns theOutputStream
associated with this instance.- Specified by:
getOutputStream
in interfaceImpExFile
- Returns:
- the
OutputStream
associated with this instance
-
close
public void close() throws java.io.IOException
Description copied from interface:ImpExFile
Closes theOutputStream
associated with this instance.
-
getFile
public java.io.File getFile()
Description copied from interface:ImpExFile
Returns theFile
object associated with this instance.
-
getMimeType
public java.lang.String getMimeType()
Description copied from interface:ImpExFile
Returns the corresponding mime type for the file associated with this instance.- Specified by:
getMimeType
in interfaceImpExFile
- Returns:
- the corresponding mime type of the file associated with this instance
-
getFileExtension
public java.lang.String getFileExtension()
Description copied from interface:ImpExFile
Returns the file extension of the file associated with this instance.- Specified by:
getFileExtension
in interfaceImpExFile
- Returns:
- the file extension of the file associated with this instance
-
-