java.lang.Object
org.xbib.rpm.changelog.ChangelogParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CHANGELOG_FORMAT
-
-
Constructor Details
-
ChangelogParser
public ChangelogParser()
-
-
Method Details
-
parse
public List<ChangelogEntry> parse(List<String> lines) throws DateTimeParseException, ChangelogParseException - Parameters:
lines- an array of lines read from the Changelog file- Returns:
- a List of ChangeLogEntry objects
- Throws:
DateTimeParseException- if date could not be parsedChangelogParseException- if any of the rules of a Changelog is violated by the input
-
parse
public List<ChangelogEntry> parse(InputStream stream, Charset charset) throws IOException, ChangelogParseException - Parameters:
stream- stream read from the Changelog filecharset- the charset of the stream- Returns:
- a List of ChangeLogEntry objects
- Throws:
IOException- if the input stream cannot be readChangelogParseException- if any of the rules of a Changelog is violated by the input
-
parse
- Throws:
IOExceptionChangelogParseException
-