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 void
close()
io.reactivex.rxjava3.core.Observable<ParseError>
errors()
ParserResultType
parse()
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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
errors
- Specified by:
errors
in interfaceSPIParserType
- Returns:
- The sequence of error events produced during parsing
-
parse
Description copied from interface:SPIParserType
Parse something.- Specified by:
parse
in 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
-