Class FormatXMLSPIParser
java.lang.Object
com.io7m.coffeepick.runtime.format.xml.FormatXMLSPIParser
- All Implemented Interfaces:
SPIParserType,java.io.Closeable,java.lang.AutoCloseable
public final class FormatXMLSPIParser extends java.lang.Object implements SPIParserType
An XML parser.
-
Constructor Summary
Constructors Constructor Description FormatXMLSPIParser(SPIParserRequest in_request, org.xml.sax.XMLReader in_reader)Construct a parser. -
Method Summary
Modifier and Type Method Description voidclose()io.reactivex.rxjava3.core.Observable<ParseError>errors()ParserResultTypeparse()Parse something.
-
Constructor Details
-
FormatXMLSPIParser
Construct a parser.- Parameters:
in_request- The parse requestin_reader- The XML reader
-
-
Method Details
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
errors
- Specified by:
errorsin interfaceSPIParserType- Returns:
- The sequence of error events produced during parsing
-
parse
Description copied from interface:SPIParserTypeParse something.- Specified by:
parsein interfaceSPIParserType- Returns:
- The parsed value
- Throws:
java.io.IOException- On I/O errorsParserFailureException- At the end of parsing if any error events have been raised, or if parsing encounters an unrecoverable error
-