All Superinterfaces:
AutoCloseable

public interface GordianZipWriteFile extends AutoCloseable
GordianKnot Zip WriteFile API.
  • Method Details

    • createOutputStream

      OutputStream createOutputStream(File pFile, boolean pCompress) throws GordianException
      Obtain an output stream for an entry in the zip file.
      Parameters:
      pFile - the file details for the new zip entry
      pCompress - should we compress this file?
      Returns:
      the output stream
      Throws:
      GordianException - on error
    • writeXMLDocument

      void writeXMLDocument(File pFile, Document pDocument) throws GordianException
      Write an XML Document as a compressed in the Zip file.
      Parameters:
      pFile - the file details for the new zip entry
      pDocument - 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

      void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException