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 org.apache.tika.parser.xml.XMLParser
See Also:
  • Constructor Details

    • PrescriptionParser

      public PrescriptionParser()
  • Method Details

    • getContentHandler

      protected ContentHandler getContentHandler(ContentHandler handler, Metadata metadata, ParseContext context)
      Overrides:
      getContentHandler in class org.apache.tika.parser.xml.XMLParser
    • getSupportedTypes

      public Set<MediaType> getSupportedTypes(ParseContext context)
      Description copied from interface: Parser
      Returns the set of media types supported by this parser when used with the given parse context.
      Specified by:
      getSupportedTypes in interface Parser
      Overrides:
      getSupportedTypes in class org.apache.tika.parser.xml.XMLParser
      Parameters:
      context - parse context
      Returns:
      immutable set of media types