@Deprecated public class TikaRepresentation extends SaxRepresentation
XML_SECURE_PROCESSINGXML_EXPANDING_ENTITY_REFS, XML_VALIDATING_DTDUNKNOWN_SIZE| Constructor and Description |
|---|
TikaRepresentation(Representation representation)
Deprecated.
Constructor.
|
TikaRepresentation(Representation representation,
TikaConfig tikaConfig)
Deprecated.
Constructor.
|
TikaRepresentation(Representation representation,
TikaConfig tikaConfig,
Parser tikaParser)
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Metadata |
getMetadata()
Deprecated.
Returns the Tika metadata used for both input and output.
|
TikaConfig |
getTikaConfig()
Deprecated.
Returns the optional Tika configuration.
|
Parser |
getTikaParser()
Deprecated.
Returns the optional Tika parser.
|
void |
parse(org.xml.sax.ContentHandler contentHandler)
Deprecated.
Parsed the wrapped representation with Tika to extract the useful
metadata and produce structural SAX events (in XHTML format) and send
them to the given SAX content handler.
|
void |
setMetadata(Metadata metadata)
Deprecated.
The Tika metadata used for both input and output.
|
void |
setTikaConfig(TikaConfig tikaConfig)
Deprecated.
Sets the optional Tika configuration.
|
void |
setTikaParser(Parser tikaParser)
Deprecated.
Sets the optional Tika parser.
|
getInputSource, getSaxSource, isSecureProcessing, release, setSaxSource, setSecureProcessing, write, writegetBoolean, getDocument, getDocumentBuilder, getDomSource, getEntityResolver, getErrorHandler, getNamespaces, getNamespaceURI, getNode, getNodes, getNumber, getPrefix, getPrefixes, getSaxSource, getSchema, getStreamSource, getText, isCoalescing, isExpandingEntityRefs, isIgnoringComments, isIgnoringExtraWhitespaces, isNamespaceAware, isValidatingDtd, isXIncludeAware, setCoalescing, setEntityResolver, setErrorHandler, setExpandingEntityRefs, setIgnoringComments, setIgnoringExtraWhitespaces, setNamespaceAware, setNamespaces, setSchema, setSchema, setValidatingDtd, setXIncludeAware, validate, validate, validate, validategetReadergetChannel, getStream, write, writeappend, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransientgetModificationDate, getTag, setModificationDate, setTagcreateClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toStringpublic TikaRepresentation(Representation representation)
representation - The wrapped representation to analyze.public TikaRepresentation(Representation representation, TikaConfig tikaConfig)
representation - The wrapped representation to analyze.tikaConfig - The optional Tika configuration.public TikaRepresentation(Representation representation, TikaConfig tikaConfig, Parser tikaParser)
representation - The wrapped representation to analyze.tikaConfig - The optional Tika configuration.tikaParser - The optional Tika parser.public Metadata getMetadata()
public TikaConfig getTikaConfig()
public Parser getTikaParser()
public void parse(org.xml.sax.ContentHandler contentHandler)
throws java.io.IOException
parse in class SaxRepresentationcontentHandler - The target SAX handler.java.io.IOExceptionpublic void setMetadata(Metadata metadata)
metadata - The Tika metadata.public void setTikaConfig(TikaConfig tikaConfig)
tikaConfig - The Tika configuration.public void setTikaParser(Parser tikaParser)
tikaParser - The Tika parser.Copyright © 2005-2020 Restlet.