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 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(File packegeinfo) |
PackageInfo |
createPackageInfo(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(String version) |
String |
getArchitecture()
Returns the Architecture code of the system
|
String |
getOperatingSystem()
Return the OS code of the system
|
String |
getOperatingSystemFamily() |
String |
getOperatingSystemName() |
String |
getOperatingSystemVersion() |
void |
readPacakgeInfo(PackageInfo packageInfo,
File file) |
void |
readPacakgeInfo(PackageInfo pkg,
InputStream os) |
void |
writePacakgeInfo(PackageInfo packageInfo,
File file) |
void |
writePacakgeInfo(PackageInfo pkg,
OutputStream os) |
static final String PACKAGE_EXTENSION
Version createVersion()
PackageInfo createPackageInfo()
PackageInfo createPackageInfo(InputStream packegeinfo) throws BaseException
packegeinfo
- as URLBaseException
PackageInfo createPackageInfo(File packegeinfo) throws BaseException
BaseException
Dependency createDependency()
Dependency createDependency(PackageInfo packageInfo)
packageInfo
- Dependencies createDependencies()
String getOperatingSystem()
String getOperatingSystemFamily()
String getOperatingSystemName()
String getOperatingSystemVersion()
String getArchitecture()
void writePacakgeInfo(PackageInfo packageInfo, File file) throws IOException
IOException
void writePacakgeInfo(PackageInfo pkg, OutputStream os) throws IOException
IOException
void readPacakgeInfo(PackageInfo packageInfo, File file) throws IOException
IOException
void readPacakgeInfo(PackageInfo pkg, InputStream os) throws IOException
IOException