Interface PluginSessionExporter

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.lang.String getFileName()
      Get the filename to store the data in the archive
      boolean requiresSaving()
      Check to see if the specified exporter needs to save anything
      void write​(java.io.OutputStream outputStream)
      Write the plugin data to a stream
      default void writeZipEntries​(java.util.zip.ZipOutputStream zipOut)
      Write data to a zip file
    • Method Detail

      • requiresSaving

        boolean requiresSaving()
        Check to see if the specified exporter needs to save anything
        Returns:
        true if the exporter needs to save something
      • writeZipEntries

        default void writeZipEntries​(java.util.zip.ZipOutputStream zipOut)
                              throws java.io.IOException
        Write data to a zip file
        Parameters:
        zipOut - The zip output stream
        Throws:
        java.io.IOException - see ZipOutputStream.putNextEntry(ZipEntry)
        java.util.zip.ZipException - see ZipOutputStream.putNextEntry(ZipEntry)
      • write

        void write​(java.io.OutputStream outputStream)
        Write the plugin data to a stream
        Parameters:
        outputStream - The stream to write to