Class UnrarParser

  • All Implemented Interfaces:
    Serializable, org.apache.tika.parser.Parser

    public class UnrarParser
    extends Object
    implements org.apache.tika.parser.Parser
    Parser for Rar files. This relies on 'unrar' being installed and on the path. This is not the default rar parser and must be selected via the tika-config.xml.
    See Also:
    Serialized Form
    • Constructor Detail

      • UnrarParser

        public UnrarParser()
    • Method Detail

      • getSupportedTypes

        public Set<org.apache.tika.mime.MediaType> getSupportedTypes​(org.apache.tika.parser.ParseContext arg0)
        Specified by:
        getSupportedTypes in interface org.apache.tika.parser.Parser
      • parse

        public void parse​(InputStream stream,
                          ContentHandler handler,
                          org.apache.tika.metadata.Metadata metadata,
                          org.apache.tika.parser.ParseContext context)
                   throws IOException,
                          SAXException,
                          org.apache.tika.exception.TikaException
        Specified by:
        parse in interface org.apache.tika.parser.Parser
        Throws:
        IOException
        SAXException
        org.apache.tika.exception.TikaException