Package org.apache.abdera.util
Class AbstractNamedParser
- java.lang.Object
-
- org.apache.abdera.util.AbstractParser
-
- org.apache.abdera.util.AbstractNamedParser
-
- All Implemented Interfaces:
NamedParser
,Parser
,NamedItem
public abstract class AbstractNamedParser extends AbstractParser implements NamedParser
Base abstract implementation of NamedParser
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getInputFormats()
Returns a listing of media type of the format consumed by this parserjava.lang.String
getName()
boolean
parsesFormat(java.lang.String mediatype)
Returns true if this parser is capable of consuming the specified media type-
Methods inherited from class org.apache.abdera.util.AbstractParser
getAbdera, getDefaultParserOptions, getFactory, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, parse, setAbdera, setDefaultParserOptions
-
-
-
-
Method Detail
-
getInputFormats
public java.lang.String[] getInputFormats()
Description copied from interface:NamedParser
Returns a listing of media type of the format consumed by this parser- Specified by:
getInputFormats
in interfaceNamedParser
- Returns:
- An array of MIME Media Types
-
parsesFormat
public boolean parsesFormat(java.lang.String mediatype)
Description copied from interface:NamedParser
Returns true if this parser is capable of consuming the specified media type- Specified by:
parsesFormat
in interfaceNamedParser
- Parameters:
mediatype
- The MIME media type to check- Returns:
- True if the media type is supported
-
-