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

    Modifier and Type
    Method
    Description
    void
    Closes the OutputStream associated with this instance.
    Returns the File object 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 the OutputStream associated with this instance.
  • Method Details

    • getOutputStream

      OutputStream getOutputStream()
      Returns the OutputStream associated with this instance.
      Returns:
      the OutputStream associated with this instance
    • getMimeType

      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

      File getFile()
      Returns the File object associated with this instance.
      Returns:
      the file associated with the current instance
    • close

      void close() throws IOException
      Closes the OutputStream associated with this instance.
      Throws:
      IOException - if any error occur while closing the stream
    • getFileExtension

      String getFileExtension()
      Returns the file extension of the file associated with this instance.
      Returns:
      the file extension of the file associated with this instance