Package org.apache.tika.parser.pkg
Class UnrarParser
java.lang.Object
org.apache.tika.parser.AbstractParser
org.apache.tika.parser.pkg.UnrarParser
- All Implemented Interfaces:
Serializable,org.apache.tika.parser.Parser
public class UnrarParser
extends org.apache.tika.parser.AbstractParser
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.apache.tika.mime.MediaType>getSupportedTypes(org.apache.tika.parser.ParseContext arg0) voidparse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) Methods inherited from class org.apache.tika.parser.AbstractParser
parse
-
Constructor Details
-
UnrarParser
public UnrarParser()
-
-
Method Details
-
getSupportedTypes
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext arg0) -
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 - Throws:
IOExceptionSAXExceptionorg.apache.tika.exception.TikaException
-