Interface WritableArchive

  • All Superinterfaces:
    Archive
    All Known Implementing Classes:
    FileArchive, OutputJarArchive

    @Contract
    public interface WritableArchive
    extends Archive
    Interface for implementing write access to an underlying archive on a unspecified medium
    Author:
    Jerome Dochez
    • Method Detail

      • create

        void create​(URI uri)
             throws IOException
        creates a new abstract archive with the given path
        Parameters:
        uri - the path to create the archive
        Throws:
        IOException
      • closeEntry

        void closeEntry​(WritableArchive subArchive)
                 throws IOException
        Close a previously returned sub archive
        Parameters:
        subArchive - output stream to close
        Throws:
        IOException
      • createSubArchive

        WritableArchive createSubArchive​(String name)
                                  throws IOException
        Returns an instance of this archive abstraction for an embedded archive within this archive.
        Parameters:
        name - is the entry name relative to the root for the archive
        Returns:
        the Archive instance for this abstraction
        Throws:
        IOException