public interface PackageManager
Modifier and Type | Interface and Description |
---|---|
static interface |
PackageManager.ARCH
Supported architecture default values.
|
static interface |
PackageManager.JVM
Supported Java virtual machine version default values.
|
static interface |
PackageManager.OS
Supported operating system default values.
|
static interface |
PackageManager.STATE
Package state default values.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PACKAGE_EXTENSION |
Modifier and Type | Method and Description |
---|---|
Dependencies |
createDependencies() |
Dependency |
createDependency()
Create a empty dependency object.
|
Dependency |
createDependency(PackageInfo packageInfo)
Create a dependency instance with the data of the package.
|
PackageInfo |
createPackageInfo()
Create a empty PackageInfo instance
|
PackageInfo |
createPackageInfo(java.io.File packegeinfo) |
PackageInfo |
createPackageInfo(java.io.InputStream packegeinfo)
Create a PackageInfo and load contents from the specified InputStream using the
default reader.
|
Version |
createVersion()
Create a empty Version instance
|
Version |
createVersion(java.lang.String version) |
java.lang.String |
getArchitecture()
Returns the Architecture code of the system
|
java.lang.String |
getOperatingSystem()
Return the OS code of the system
|
java.lang.String |
getOperatingSystemFamily() |
java.lang.String |
getOperatingSystemName() |
java.lang.String |
getOperatingSystemVersion() |
void |
readPacakgeInfo(PackageInfo packageInfo,
java.io.File file) |
void |
readPacakgeInfo(PackageInfo pkg,
java.io.InputStream os) |
void |
writePacakgeInfo(PackageInfo packageInfo,
java.io.File file) |
void |
writePacakgeInfo(PackageInfo pkg,
java.io.OutputStream os) |
static final java.lang.String PACKAGE_EXTENSION
Version createVersion()
Version createVersion(java.lang.String version)
PackageInfo createPackageInfo()
PackageInfo createPackageInfo(java.io.InputStream packegeinfo) throws BaseException
packegeinfo
- as URLBaseException
PackageInfo createPackageInfo(java.io.File packegeinfo) throws BaseException
BaseException
Dependency createDependency()
Dependency createDependency(PackageInfo packageInfo)
packageInfo
- Dependencies createDependencies()
java.lang.String getOperatingSystem()
java.lang.String getOperatingSystemFamily()
java.lang.String getOperatingSystemName()
java.lang.String getOperatingSystemVersion()
java.lang.String getArchitecture()
void writePacakgeInfo(PackageInfo packageInfo, java.io.File file) throws java.io.IOException
java.io.IOException
void writePacakgeInfo(PackageInfo pkg, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
void readPacakgeInfo(PackageInfo packageInfo, java.io.File file) throws java.io.IOException
java.io.IOException
void readPacakgeInfo(PackageInfo pkg, java.io.InputStream os) throws java.io.IOException
java.io.IOException