Interface PluginSessionExporter
-
public interface PluginSessionExporter
Export arbitrary data from a plugin.- Since:
- 18833
-
-
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 archiveboolean
requiresSaving()
Check to see if the specified exporter needs to save anythingvoid
write(java.io.OutputStream outputStream)
Write the plugin data to a streamdefault void
writeZipEntries(java.util.zip.ZipOutputStream zipOut)
Write data to a zip file
-
-
-
Method Detail
-
getFileName
java.lang.String getFileName()
Get the filename to store the data in the archive- Returns:
- The filename
- See Also:
PluginSessionImporter.getFileName()
-
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
- seeZipOutputStream.putNextEntry(ZipEntry)
java.util.zip.ZipException
- seeZipOutputStream.putNextEntry(ZipEntry)
-
write
void write(java.io.OutputStream outputStream)
Write the plugin data to a stream- Parameters:
outputStream
- The stream to write to
-
-