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