public class StringsParser
extends org.apache.tika.parser.AbstractParser
implements org.apache.tika.config.Initializable
| Constructor and Description |
|---|
StringsParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkInitialization(org.apache.tika.config.InitializableProblemHandler problemHandler) |
int |
getMinLength() |
StringsEncoding |
getStringsEncoding() |
String |
getStringsPath() |
static String |
getStringsProg() |
Set<org.apache.tika.mime.MediaType> |
getSupportedTypes(org.apache.tika.parser.ParseContext context) |
int |
getTimeoutSeconds() |
void |
initialize(Map<String,org.apache.tika.config.Param> params) |
void |
parse(InputStream stream,
ContentHandler handler,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext context) |
void |
setEncoding(String encoding) |
void |
setMinLength(int minLength) |
void |
setStringsPath(String path)
Sets the "strings" installation folder.
|
void |
setTimeoutSeconds(int timeoutSeconds) |
public static String getStringsProg()
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
getSupportedTypes in interface org.apache.tika.parser.Parserpublic 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
parse in interface org.apache.tika.parser.ParserIOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionpublic String getStringsPath()
@Field public void setStringsPath(String path)
path - the "strings" installation folder.@Field public void setEncoding(String encoding)
public int getMinLength()
@Field public void setMinLength(int minLength)
public int getTimeoutSeconds()
@Field public void setTimeoutSeconds(int timeoutSeconds)
public StringsEncoding getStringsEncoding()
public void initialize(Map<String,org.apache.tika.config.Param> params) throws org.apache.tika.exception.TikaConfigException
initialize in interface org.apache.tika.config.Initializableorg.apache.tika.exception.TikaConfigExceptionpublic void checkInitialization(org.apache.tika.config.InitializableProblemHandler problemHandler)
throws org.apache.tika.exception.TikaConfigException
checkInitialization in interface org.apache.tika.config.Initializableorg.apache.tika.exception.TikaConfigExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.