public interface PackageManager
Modifier and Type | Method and Description |
---|---|
VaultPackage |
assemble(Session s,
ExportOptions opts,
java.io.File file)
Assembles a package using the given meta information and file to
store to.
|
void |
assemble(Session s,
ExportOptions opts,
java.io.OutputStream out)
Assembles a package using the given meta information.
|
VaultPackage |
open(java.io.File file)
Opens the given file and creates a package
|
VaultPackage |
open(java.io.File file,
boolean strict)
Opens the given file and creates a package
|
VaultPackage |
rewrap(ExportOptions opts,
VaultPackage src,
java.io.File file)
Re-wraps a package using the given meta information and file to
store to.
|
void |
rewrap(ExportOptions opts,
VaultPackage src,
java.io.OutputStream out)
Re-wraps the given package with the definition provided in the export
options.
|
VaultPackage open(java.io.File file) throws java.io.IOException
file
- the filejava.io.IOException
- if an error occurrsVaultPackage open(java.io.File file, boolean strict) throws java.io.IOException
file
- the filestrict
- if true
the import is more strict in respect to errors.java.io.IOException
- if an error occurrsVaultPackage assemble(Session s, ExportOptions opts, java.io.File file) throws java.io.IOException, RepositoryException
null
a temp file is generated.s
- the repository sessionopts
- export optionsfile
- the file to write tojava.io.IOException
- if an I/O error occurs.RepositoryException
- if a repository error during building occurs.java.lang.IllegalStateException
- if the package is not new.void assemble(Session s, ExportOptions opts, java.io.OutputStream out) throws java.io.IOException, RepositoryException
s
- the repository sessionopts
- the export optionsout
- the output stream to write tojava.io.IOException
- if an I/O error occurs.RepositoryException
- if a repository error during building occurs.java.lang.IllegalStateException
- if the package is not new.VaultPackage rewrap(ExportOptions opts, VaultPackage src, java.io.File file) throws java.io.IOException, RepositoryException
null
a temp file is generated.opts
- export optionssrc
- source packagefile
- the file to write tojava.io.IOException
- if an I/O error occurs.RepositoryException
- if a repository error during building occurs.java.lang.IllegalStateException
- if the package is not new.void rewrap(ExportOptions opts, VaultPackage src, java.io.OutputStream out) throws java.io.IOException
opts
- export optionssrc
- source packageout
- destination output streamjava.io.IOException
- if an I/O error occurs"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"