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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Closes the OutputStream associated with this instance.
      java.io.File getFile()
      Returns the File 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 the OutputStream associated with this instance.
    • Method Detail

      • getOutputStream

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

        java.lang.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

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

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

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