Package org.apache.tika.example
Class PrescriptionParser
- java.lang.Object
-
- org.apache.tika.parser.xml.XMLParser
-
- org.apache.tika.example.PrescriptionParser
-
- All Implemented Interfaces:
Serializable,Parser
public class PrescriptionParser extends XMLParser
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PrescriptionParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ContentHandlergetContentHandler(ContentHandler handler, Metadata metadata, ParseContext context)Set<MediaType>getSupportedTypes(ParseContext context)Returns the set of media types supported by this parser when used with the given parse context.
-
-
-
Method Detail
-
getContentHandler
protected ContentHandler getContentHandler(ContentHandler handler, Metadata metadata, ParseContext context)
- Overrides:
getContentHandlerin classXMLParser
-
getSupportedTypes
public Set<MediaType> getSupportedTypes(ParseContext context)
Description copied from interface:ParserReturns the set of media types supported by this parser when used with the given parse context.- Specified by:
getSupportedTypesin interfaceParser- Overrides:
getSupportedTypesin classXMLParser- Parameters:
context- parse context- Returns:
- immutable set of media types
-
-