Class ImpExCsvFile

java.lang.Object
de.hybris.platform.impex.jalo.ImpExCsvFile
All Implemented Interfaces:
ImpExFile

public class ImpExCsvFile extends Object implements ImpExFile
The ImpExCsvFile class is intended to be used for single file data export.
  • Constructor Details

    • ImpExCsvFile

      public ImpExCsvFile() throws IOException
      Throws:
      IOException
    • ImpExCsvFile

      public ImpExCsvFile(String fileName) throws IOException
      Creates a new ImpExCsvFile instance with a corresponding file named fileName.
      Parameters:
      fileName - name of the file associated with this ImpExCsvFile instance.
      Throws:
      IOException - if any errors occur while opening files and streams associated with this ImpExCsvFile instance.
  • Method Details

    • getOutputStream

      public OutputStream getOutputStream()
      Description copied from interface: ImpExFile
      Returns the OutputStream associated with this instance.
      Specified by:
      getOutputStream in interface ImpExFile
      Returns:
      the OutputStream associated with this instance
    • close

      public void close() throws IOException
      Description copied from interface: ImpExFile
      Closes the OutputStream associated with this instance.
      Specified by:
      close in interface ImpExFile
      Throws:
      IOException - if any error occur while closing the stream
    • getFile

      public File getFile()
      Description copied from interface: ImpExFile
      Returns the File object associated with this instance.
      Specified by:
      getFile in interface ImpExFile
      Returns:
      the file associated with the current instance
    • getMimeType

      public String getMimeType()
      Description copied from interface: ImpExFile
      Returns the corresponding mime type for the file associated with this instance.
      Specified by:
      getMimeType in interface ImpExFile
      Returns:
      the corresponding mime type of the file associated with this instance
    • getFileExtension

      public String getFileExtension()
      Description copied from interface: ImpExFile
      Returns the file extension of the file associated with this instance.
      Specified by:
      getFileExtension in interface ImpExFile
      Returns:
      the file extension of the file associated with this instance