public class ResourceXMLFormatParser extends java.lang.Object implements ResourceFormatParser, Describable
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
EXTENSIONS |
static java.util.Set<java.lang.String> |
MIME_TYPES |
static java.lang.String |
SERVICE_PROVIDER_TYPE |
Constructor and Description |
---|
ResourceXMLFormatParser() |
Modifier and Type | Method and Description |
---|---|
Description |
getDescription()
Return the configuration description
|
java.util.Set<java.lang.String> |
getFileExtensions()
Return the list of file extensions that this format parser can parse.
|
java.util.Set<java.lang.String> |
getMIMETypes()
Return the list of MIME types that this format parser can parse.
|
INodeSet |
parseDocument(java.io.File file)
Parse a file
|
INodeSet |
parseDocument(java.io.InputStream input)
Parse an input stream
|
public static final java.lang.String SERVICE_PROVIDER_TYPE
public static final java.util.Set<java.lang.String> EXTENSIONS
public static final java.util.Set<java.lang.String> MIME_TYPES
public java.util.Set<java.lang.String> getFileExtensions()
ResourceFormatParser
getFileExtensions
in interface ResourceFormatParser
public java.util.Set<java.lang.String> getMIMETypes()
ResourceFormatParser
getMIMETypes
in interface ResourceFormatParser
public INodeSet parseDocument(java.io.File file) throws ResourceFormatParserException
ResourceFormatParser
parseDocument
in interface ResourceFormatParser
ResourceFormatParserException
public INodeSet parseDocument(java.io.InputStream input) throws ResourceFormatParserException
ResourceFormatParser
parseDocument
in interface ResourceFormatParser
ResourceFormatParserException
public Description getDescription()
Describable
getDescription
in interface Describable