public class SQLite3Parser
extends org.apache.tika.parser.AbstractParser
implements org.apache.tika.config.Initializable
parse(java.io.InputStream, org.xml.sax.ContentHandler, org.apache.tika.metadata.Metadata, org.apache.tika.parser.ParseContext) is called,
this creates a new SQLite3DBParser.
Given potential conflicts of native libraries in web servers, users will
need to add org.xerial's sqlite-jdbc jar to the class path for this parser
to work. For development and testing, this jar is specified in tika-parsers'
pom.xml, but it is currently set to "provided."
Note that this family of jdbc parsers is designed to treat each CLOB and each BLOB
as an embedded document; i.e. it will recursively process documents that are stored
in a sqlite db as "bytes".
If using a TikaInputStream, make sure to close it to delete the temp file
that has to be created.| Constructor and Description |
|---|
SQLite3Parser()
Checks to see if class is available for org.sqlite.JDBC.
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkInitialization(org.apache.tika.config.InitializableProblemHandler problemHandler) |
Set<org.apache.tika.mime.MediaType> |
getSupportedTypes(org.apache.tika.parser.ParseContext context) |
void |
initialize(Map<String,org.apache.tika.config.Param> params)
No-op
|
void |
parse(InputStream stream,
ContentHandler handler,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext context) |
public SQLite3Parser()
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 void initialize(Map<String,org.apache.tika.config.Param> params) throws org.apache.tika.exception.TikaConfigException
initialize in interface org.apache.tika.config.Initializableparams - params to use for initializationorg.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–2022 The Apache Software Foundation. All rights reserved.