public interface Archive
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(java.lang.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(java.lang.String root,
boolean asJcrRoot)
Returns a sub archive that is rooted at the given path.
|
void |
open(boolean strict)
Opens the archive.
|
java.io.InputStream |
openInputStream(Archive.Entry entry)
Opens an input stream for the given entry
|
void open(boolean strict) throws java.io.IOException
strict
- if true
open will fail if there was an
internal error while parsing meta data.java.io.IOException
- if an error occursjava.io.InputStream openInputStream(Archive.Entry entry) throws java.io.IOException
entry
- the entrynull
if the entry can't be readjava.io.IOException
- if an error occursVaultInputSource getInputSource(Archive.Entry entry) throws java.io.IOException
entry
- the entrynull
if the entry can't be readjava.io.IOException
- if an error occursArchive.Entry getJcrRoot() throws java.io.IOException
null
is returned.null
java.io.IOException
- if an error occursArchive.Entry getRoot() throws java.io.IOException
java.io.IOException
- if an error occursMetaInf getMetaInf()
Archive.Entry getEntry(java.lang.String path) throws java.io.IOException
path
- the pathnull
if not found.java.io.IOException
- if an error occursArchive getSubArchive(java.lang.String root, boolean asJcrRoot) throws java.io.IOException
root
- root pathasJcrRoot
- if true
the given root is the jcr_rootnull
if entry specified by root
does not exist.java.io.IOException
- if an error occursvoid close()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"