@Contract public interface WritableArchive extends Archive
Modifier and Type | Method and Description |
---|---|
void |
closeEntry()
closes the current entry
|
void |
closeEntry(WritableArchive subArchive)
Close a previously returned sub archive
|
void |
create(URI uri)
creates a new abstract archive with the given path
|
WritableArchive |
createSubArchive(String name)
Returns an instance of this archive abstraction for an embedded
archive within this archive.
|
OutputStream |
putNextEntry(String name)
Create a new entry in the archive
|
close, entries, entries, getArchiveSize, getDirectories, getManifest, getName, getURI, isDirectory
void create(URI uri) throws IOException
uri
- the path to create the archiveIOException
void closeEntry(WritableArchive subArchive) throws IOException
subArchive
- output stream to closeIOException
OutputStream putNextEntry(String name) throws IOException
name
- the entry nameIOException
void closeEntry() throws IOException
IOException
WritableArchive createSubArchive(String name) throws IOException
name
- is the entry name relative to the root for the archiveIOException
Copyright © 2018. All rights reserved.