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
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
parserFormatSupported
public FormatDescription parserFormatSupported()
- Specified by:
parserFormatSupportedin interfaceSPIParserProviderType- Returns:
- The format that this provider supports
-
parserFormatVersionsSupported
public java.util.SortedSet<FormatVersion> 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
public SPIProbeResultType probe(SPIParserRequest request) throws java.io.IOException
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
public SPIParserType parserCreate(SPIParserRequest request) throws java.io.IOException
- 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
-
-