public class DebianPackageParserImpl extends Object implements DebianPackageParser, DebianPackageConstants
A DebianPackageParser
implementation.
This implementation currently only supports Debian binary packages.
CONFFILES_ENTRY, CONFIG_ENTRY, CONTROL_ENTRY, CONTROL_NAME, CONTROL_TAR_PREFIX, DATA_NAME, DATA_TAR_PREFIX, DEBIAN_BINARY, DIRECTORY_MODE, DOC_BASE_PATH, FILE_MODE, MD5SUMS_ENTRY, POSTINST_ENTRY, POSTRM_ENTRY, PREINST_ENTRY, PRERM_ENTRY, ROOT_GROUP_ID, ROOT_GROUP_NAME, ROOT_USER_ID, ROOT_USER_NAME, SCRIPT_MODE, SHLIBS_ENTRY, SYMBOLS_ENTRY, TAR_BZIP2_SUFFIX, TAR_GZIP_SUFFIX, TAR_XZ_SUFFIX, TEMPLATES_ENTRY, TRIGGERS_ENTRY, USR_PATH, USR_SHARE_PATH
UTF_8, UTF_8_CHARSET
Modifier | Constructor and Description |
---|---|
protected |
DebianPackageParserImpl()
Creates a parser.
|
Modifier and Type | Method and Description |
---|---|
DebianPackage |
parseDebianPackage(DataSource source,
Context context)
Parses the Debian package from the specified source.
|
DebianPackage |
parseDebianPackage(DataSource source,
DebianPackageParseHandler handler,
Context context)
Parses the Debian package from the specified source.
|
public DebianPackage parseDebianPackage(DataSource source, Context context) throws IOException, ParseException
DebianPackageParser
Parses the Debian package from the specified source.
parseDebianPackage
in interface DebianPackageParser
source
- The source.context
- The context.IOException
- If an I/O error occurs.ParseException
- If an error occurs during the parsing.public DebianPackage parseDebianPackage(DataSource source, DebianPackageParseHandler handler, Context context) throws IOException, ParseException
DebianPackageParser
Parses the Debian package from the specified source.
parseDebianPackage
in interface DebianPackageParser
source
- The source.handler
- The handler.context
- The context.IOException
- If an I/O error occurs.ParseException
- If an error occurs during the parsing.Copyright © 2015–2019. All rights reserved.