Interface GordianZipWriteFile
- All Superinterfaces:
AutoCloseable
GordianKnot Zip WriteFile API.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createOutputStream(File pFile, boolean pCompress) Obtain an output stream for an entry in the zip file.Obtain the contents.Obtain the currently active ZipFileEntry.voidwriteXMLDocument(File pFile, Document pDocument) Write an XML Document as a compressed in the Zip file.
-
Method Details
-
createOutputStream
Obtain an output stream for an entry in the zip file.- Parameters:
pFile- the file details for the new zip entrypCompress- should we compress this file?- Returns:
- the output stream
- Throws:
GordianException- on error
-
writeXMLDocument
Write an XML Document as a compressed in the Zip file.- Parameters:
pFile- the file details for the new zip entrypDocument- the XML document.- Throws:
GordianException- on error
-
getContents
GordianZipFileContents getContents()Obtain the contents.- Returns:
- the ZipFile Contents
-
getCurrentEntry
GordianZipFileEntry getCurrentEntry()Obtain the currently active ZipFileEntry.- Returns:
- the ZipFile Entry
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-