Interface PluginSessionImporter
-
public interface PluginSessionImporter
Import arbitrary data for a plugin.- Since:
- 18833
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringgetFileName()Get the filename that was used to store data in the archive.booleanread(java.io.InputStream inputStream)Read data from a file streamdefault booleanreadZipFile(java.util.zip.ZipFile zipFile)Read the data from a zip file
-
-
-
Method Detail
-
getFileName
java.lang.String getFileName()
Get the filename that was used to store data in the archive.- Returns:
- The filename
- See Also:
PluginSessionExporter.getFileName()
-
read
boolean read(java.io.InputStream inputStream)
Read data from a file stream- Parameters:
inputStream- The stream to read- Returns:
trueif the importer loaded data
-
readZipFile
default boolean readZipFile(java.util.zip.ZipFile zipFile) throws java.io.IOException
Read the data from a zip file- Parameters:
zipFile- The zipfile to read- Returns:
trueif the importer loaded data- Throws:
java.io.IOException- if there was an issue reading the zip file. SeeZipFile.getInputStream(ZipEntry).
-
-