public class SQLite3Parser
extends org.apache.tika.parser.AbstractParser
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 |
|---|---|
Set<org.apache.tika.mime.MediaType> |
getSupportedTypes(org.apache.tika.parser.ParseContext context) |
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)
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.TikaExceptionCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.