Package org.apache.tika.parser.pkg
Class UnrarParser
- java.lang.Object
-
- org.apache.tika.parser.pkg.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 Summary
Constructors Constructor Description UnrarParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<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)
-
-
-
Method Detail
-
getSupportedTypes
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext arg0)
- Specified by:
getSupportedTypesin interfaceorg.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:
parsein interfaceorg.apache.tika.parser.Parser- Throws:
IOExceptionSAXExceptionorg.apache.tika.exception.TikaException
-
-