Class FormatXMLSPIParserProvider
java.lang.Object
com.io7m.coffeepick.runtime.format.xml.FormatXMLSPIParserProvider
- All Implemented Interfaces:
SPIParserProviderType
public final class FormatXMLSPIParserProvider extends java.lang.Object implements SPIParserProviderType
An XML format provider.
-
Constructor Summary
Constructors Constructor Description FormatXMLSPIParserProvider()Construct a provider. -
Method Summary
Modifier and Type Method Description SPIParserTypeparserCreate(SPIParserRequest request)FormatDescriptionparserFormatSupported()java.util.SortedSet<FormatVersion>parserFormatVersionsSupported()java.lang.StringparserName()SPIProbeResultTypeprobe(SPIParserRequest request)Try to probe the format of the given request.
-
Constructor Details
-
FormatXMLSPIParserProvider
public FormatXMLSPIParserProvider()Construct a provider.
-
-
Method Details
-
parserFormatSupported
- Specified by:
parserFormatSupportedin interfaceSPIParserProviderType- Returns:
- The format that this provider supports
-
parserFormatVersionsSupported
- Specified by:
parserFormatVersionsSupportedin interfaceSPIParserProviderType- Returns:
- The supported versions of the format
-
parserName
public java.lang.String parserName()- Specified by:
parserNamein interfaceSPIParserProviderType- Returns:
- The name of this provider
-
probe
Description copied from interface:SPIParserProviderTypeTry to probe the format of the given request.- Specified by:
probein interfaceSPIParserProviderType- Parameters:
request- The request- Returns:
- The result of probing
- Throws:
java.io.IOException- On I/O errors
-
parserCreate
- Specified by:
parserCreatein interfaceSPIParserProviderType- Parameters:
request- The parser request- Returns:
- A new parser for the format
- Throws:
java.io.IOException- On I/O or parser configuration errors
-