public class PackageParser
extends org.apache.tika.parser.AbstractEncodingDetectorParser
User must have JCE Unlimited Strength jars installed for encryption to work with 7Z files (see: COMPRESS-299 and TIKA-1521). If the jars are not installed, an IOException will be thrown, and potentially wrapped in a TikaException.
| Constructor and Description |
|---|
PackageParser() |
PackageParser(org.apache.tika.detect.EncodingDetector encodingDetector) |
| Modifier and Type | Method and Description |
|---|---|
Set<org.apache.tika.mime.MediaType> |
getSupportedTypes(org.apache.tika.parser.ParseContext context) |
protected static org.apache.tika.metadata.Metadata |
handleEntryMetadata(String name,
Date createAt,
Date modifiedAt,
Long size,
org.apache.tika.sax.XHTMLContentHandler xhtml) |
boolean |
isDetectCharsetsInEntryNames() |
void |
parse(InputStream stream,
ContentHandler handler,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext context) |
void |
setDetectCharsetsInEntryNames(boolean detectCharsetsInEntryNames)
Whether or not to run the default charset detector against entry
names in ZipFiles.
|
public PackageParser()
public PackageParser(org.apache.tika.detect.EncodingDetector encodingDetector)
protected static org.apache.tika.metadata.Metadata handleEntryMetadata(String name, Date createAt, Date modifiedAt, Long size, org.apache.tika.sax.XHTMLContentHandler xhtml) throws SAXException, IOException, org.apache.tika.exception.TikaException
SAXExceptionIOExceptionorg.apache.tika.exception.TikaExceptionpublic Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
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
IOExceptionSAXExceptionorg.apache.tika.exception.TikaException@Field public void setDetectCharsetsInEntryNames(boolean detectCharsetsInEntryNames)
true.detectCharsetsInEntryNames - public boolean isDetectCharsetsInEntryNames()
Copyright © 2007–2024 The Apache Software Foundation. All rights reserved.