public abstract class IssueParser extends Object implements Serializable
| Constructor and Description |
|---|
IssueParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ReaderFactory readerFactory)
Returns whether this parser accepts the specified file as valid input.
|
protected boolean |
isXmlFile(ReaderFactory readerFactory)
Returns whether the specified file is an XML file.
|
abstract Report |
parse(ReaderFactory readerFactory)
Parses the specified file for issues.
|
public abstract Report parse(ReaderFactory readerFactory) throws ParsingException, ParsingCanceledException
readerFactory - provides a reader to the reportsParsingException - Signals that during parsing a non recoverable error has been occurredParsingCanceledException - Signals that the parsing has been aborted by the userpublic boolean accepts(ReaderFactory readerFactory)
readerFactory - provides a reader to the reportstrue if this parser accepts this file as valid input, or false if the file could not be
parsed by this parserprotected boolean isXmlFile(ReaderFactory readerFactory)
readerFactory - the file to checktrue if the file is an XML file, false otherwiseCopyright © 2018. All rights reserved.