Package org.gephi.project.io
Class SaveTask
- java.lang.Object
-
- org.gephi.project.io.SaveTask
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
cancel
private File
file
private org.gephi.utils.progress.ProgressTicket
progressTicket
private Project
project
private static String
ZIP_LEVEL_PREFERENCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel()
private static String
getFileExtension(File file)
private static String
getFileNameWithoutExt(File file)
private static XMLStreamWriter
newXMLWriter(OutputStream outputStream)
void
run()
void
setProgressTicket(org.gephi.utils.progress.ProgressTicket progressTicket)
private void
writeProject(OutputStream outputStream, ZipOutputStream zipOut)
private void
writeWorkspace(Workspace workspace, OutputStream outputStream, ZipOutputStream zipOut)
private void
writeWorkspaceChildrenBytes(Workspace workspace, WorkspaceBytesPersistenceProvider persistenceProvider, DataOutputStream outputStream, ZipOutputStream zipOut)
private void
writeWorkspaceChildrenXML(Workspace workspace, WorkspaceXMLPersistenceProvider persistenceProvider, OutputStream outputStream, ZipOutputStream zipOut)
-
-
-
Field Detail
-
ZIP_LEVEL_PREFERENCE
private static final String ZIP_LEVEL_PREFERENCE
- See Also:
- Constant Field Values
-
file
private final File file
-
project
private final Project project
-
cancel
private boolean cancel
-
progressTicket
private org.gephi.utils.progress.ProgressTicket progressTicket
-
-
Method Detail
-
newXMLWriter
private static XMLStreamWriter newXMLWriter(OutputStream outputStream) throws Exception
- Throws:
Exception
-
writeProject
private void writeProject(OutputStream outputStream, ZipOutputStream zipOut) throws Exception
- Throws:
Exception
-
writeWorkspace
private void writeWorkspace(Workspace workspace, OutputStream outputStream, ZipOutputStream zipOut) throws Exception
- Throws:
Exception
-
writeWorkspaceChildrenXML
private void writeWorkspaceChildrenXML(Workspace workspace, WorkspaceXMLPersistenceProvider persistenceProvider, OutputStream outputStream, ZipOutputStream zipOut) throws Exception
- Throws:
Exception
-
writeWorkspaceChildrenBytes
private void writeWorkspaceChildrenBytes(Workspace workspace, WorkspaceBytesPersistenceProvider persistenceProvider, DataOutputStream outputStream, ZipOutputStream zipOut) throws Exception
- Throws:
Exception
-
cancel
public boolean cancel()
- Specified by:
cancel
in interfaceorg.gephi.utils.longtask.spi.LongTask
-
setProgressTicket
public void setProgressTicket(org.gephi.utils.progress.ProgressTicket progressTicket)
- Specified by:
setProgressTicket
in interfaceorg.gephi.utils.longtask.spi.LongTask
-
-