Package com.io7m.changelog.xml.api
Interface CXMLChangelogParserProviderType
- All Superinterfaces:
CChangelogParserProviderType
- All Known Implementing Classes:
CXMLChangelogParsers
The type of parser providers.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(URI uri, InputStream stream, Consumer<CParseError> receiver) Create a new parser.default CChangelogparse(Path file, Consumer<CParseError> receiver) Parse a changelog from the given file.
-
Method Details
-
create
CXMLChangelogParserType create(URI uri, InputStream stream, Consumer<CParseError> receiver) throws IOException Description copied from interface:CChangelogParserProviderTypeCreate a new parser.- Specified by:
createin interfaceCChangelogParserProviderType- Parameters:
uri- The URI of the stream, for diagnostic messagesstream- The streamreceiver- A receiver for errors- Returns:
- A new parser
- Throws:
IOException- On I/O errors
-
parse
Parse a changelog from the given file.- Parameters:
file- The filereceiver- An error receiver- Returns:
- A parsed changelog
- Throws:
IOException- On I/O errors
-