public class ControlParserImpl extends Object implements ControlParser, ControlConstants
A ControlParser
implementation.
This implementation currently only supports controls of Debian binary packages.
FIELD_ARCHITECTURE, FIELD_BREAKS, FIELD_BUGS, FIELD_BUILT_USING, FIELD_CONFLICTS, FIELD_DEPENDS, FIELD_DESCRIPTION, FIELD_ENHANCES, FIELD_ESSENTIAL, FIELD_HOMEPAGE, FIELD_INSTALLED_SIZE, FIELD_MAINTAINER, FIELD_MODALIASES, FIELD_MULTI_ARCH, FIELD_ORIG_MAINTAINER, FIELD_ORIGIN, FIELD_ORIGINAL_MAINTAINER, FIELD_PACKAGE, FIELD_PRE_DEPENDS, FIELD_PRIORITY, FIELD_PROVIDES, FIELD_PYTHON_VERSION, FIELD_RECOMMENDS, FIELD_REPLACES, FIELD_SECTION, FIELD_SOURCE, FIELD_SUGGESTS, FIELD_TAG, FIELD_VERSION
UTF_8, UTF_8_CHARSET
Constructor and Description |
---|
ControlParserImpl()
Creates a parser.
|
Modifier and Type | Method and Description |
---|---|
Control |
parseControl(DataSource source,
Context context)
Parses the control from the specified source.
|
public Control parseControl(DataSource source, Context context) throws IOException, ParseException
ControlParser
Parses the control from the specified source.
parseControl
in interface ControlParser
source
- The source.context
- The context.IOException
- If an I/O error occurs.ParseException
- If an error occurs during the parsing.Copyright © 2015–2019. All rights reserved.