Interface WritableArchive
- All Superinterfaces:
Archive
,AutoCloseable
Interface for implementing write access to an underlying archive on a unspecified medium
- Author:
- Jerome Dochez
-
Method Summary
Modifier and TypeMethodDescriptionvoid
closes the current entryvoid
closeEntry
(WritableArchive subArchive) Close a previously returned sub archivevoid
creates a new abstract archive with the given pathcreateSubArchive
(String name) Returns an instance of this archive abstraction for an embedded archive within this archive.putNextEntry
(String name) Create a new entry in the archiveMethods inherited from interface org.glassfish.api.deployment.archive.Archive
close, entries, entries, getArchiveSize, getDirectories, getManifest, getName, getURI, isDirectory
-
Method Details
-
create
creates a new abstract archive with the given path- Parameters:
uri
- the path to create the archive- Throws:
IOException
-
closeEntry
Close a previously returned sub archive- Parameters:
subArchive
- output stream to close- Throws:
IOException
-
putNextEntry
Create a new entry in the archive- Parameters:
name
- the entry name- Throws:
IOException
-
closeEntry
closes the current entry- Throws:
IOException
-
createSubArchive
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
-