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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()io.reactivex.rxjava3.core.Observable<ParseError>errors()ParserResultTypeparse()Parse something.
-
-
-
Constructor Detail
-
FormatXMLSPIParser
public FormatXMLSPIParser(SPIParserRequest in_request, org.xml.sax.XMLReader in_reader)
Construct a parser.- Parameters:
in_request- The parse requestin_reader- The XML reader
-
-
Method Detail
-
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
public io.reactivex.rxjava3.core.Observable<ParseError> errors()
- Specified by:
errorsin interfaceSPIParserType- Returns:
- The sequence of error events produced during parsing
-
parse
public ParserResultType parse() throws java.io.IOException, ParserFailureException
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
-
-