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 SPIParserType
parserCreate(SPIParserRequest request)
FormatDescription
parserFormatSupported()
java.util.SortedSet<FormatVersion>
parserFormatVersionsSupported()
java.lang.String
parserName()
SPIProbeResultType
probe(SPIParserRequest request)
Try to probe the format of the given request.
-
Constructor Details
-
FormatXMLSPIParserProvider
public FormatXMLSPIParserProvider()Construct a provider.
-
-
Method Details
-
parserFormatSupported
- Specified by:
parserFormatSupported
in interfaceSPIParserProviderType
- Returns:
- The format that this provider supports
-
parserFormatVersionsSupported
- Specified by:
parserFormatVersionsSupported
in interfaceSPIParserProviderType
- Returns:
- The supported versions of the format
-
parserName
public java.lang.String parserName()- Specified by:
parserName
in interfaceSPIParserProviderType
- Returns:
- The name of this provider
-
probe
Description copied from interface:SPIParserProviderType
Try to probe the format of the given request.- Specified by:
probe
in interfaceSPIParserProviderType
- Parameters:
request
- The request- Returns:
- The result of probing
- Throws:
java.io.IOException
- On I/O errors
-
parserCreate
- Specified by:
parserCreate
in interfaceSPIParserProviderType
- Parameters:
request
- The parser request- Returns:
- A new parser for the format
- Throws:
java.io.IOException
- On I/O or parser configuration errors
-