public interface Archive extends Closeable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Archive.Entry
Entry of an archive
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes the archive
|
Archive.Entry |
getEntry(String path)
Returns the entry specified by path.
|
VaultInputSource |
getInputSource(Archive.Entry entry)
Returns an input source for the given entry
|
Archive.Entry |
getJcrRoot()
Returns the entry that specifies the "jcr_root".
|
MetaInf |
getMetaInf()
Returns the meta inf.
|
Archive.Entry |
getRoot()
Returns the root entry.
|
Archive |
getSubArchive(String root,
boolean asJcrRoot)
Returns a sub archive that is rooted at the given path.
|
void |
open(boolean strict)
Opens the archive.
|
InputStream |
openInputStream(Archive.Entry entry)
Opens an input stream for the given entry
|
void open(boolean strict) throws IOException
strict - if true open will fail if there was an
internal error while parsing meta data.IOException - if an error occurs@CheckForNull InputStream openInputStream(@Nullable Archive.Entry entry) throws IOException
entry - the entrynull if the entry can't be readIOException - if an error occurs@CheckForNull VaultInputSource getInputSource(@Nullable Archive.Entry entry) throws IOException
entry - the entrynull if the entry can't be readIOException - if an error occurs@CheckForNull Archive.Entry getJcrRoot() throws IOException
null is returned.nullIOException - if an error occurs@Nonnull Archive.Entry getRoot() throws IOException
IOException - if an error occurs@Nonnull MetaInf getMetaInf()
@CheckForNull Archive.Entry getEntry(@Nonnull String path) throws IOException
path - the pathnull if not found.IOException - if an error occurs@CheckForNull Archive getSubArchive(@Nonnull String root, boolean asJcrRoot) throws IOException
root - root pathasJcrRoot - if true the given root is the jcr_rootnull if entry specified by root
does not exist.IOException - if an error occursvoid close()
close in interface AutoCloseableclose in interface CloseableCopyright © 2010 - 2020 Adobe. All Rights Reserved