@Deprecated public class TikaRepresentation extends SaxRepresentation
XML_SECURE_PROCESSING
XML_EXPANDING_ENTITY_REFS, XML_VALIDATING_DTD
UNKNOWN_SIZE
Constructor and Description |
---|
TikaRepresentation(Representation representation)
Deprecated.
Constructor.
|
TikaRepresentation(Representation representation,
org.apache.tika.config.TikaConfig tikaConfig)
Deprecated.
Constructor.
|
TikaRepresentation(Representation representation,
org.apache.tika.config.TikaConfig tikaConfig,
org.apache.tika.parser.Parser tikaParser)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.tika.metadata.Metadata |
getMetadata()
Deprecated.
Returns the Tika metadata used for both input and output.
|
org.apache.tika.config.TikaConfig |
getTikaConfig()
Deprecated.
Returns the optional Tika configuration.
|
org.apache.tika.parser.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(org.apache.tika.metadata.Metadata metadata)
Deprecated.
The Tika metadata used for both input and output.
|
void |
setTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)
Deprecated.
Sets the optional Tika configuration.
|
void |
setTikaParser(org.apache.tika.parser.Parser tikaParser)
Deprecated.
Sets the optional Tika parser.
|
getInputSource, getSaxSource, isSecureProcessing, release, setSaxSource, setSecureProcessing, write, write
getBoolean, 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, validate
getReader
getChannel, getStream, write, write
append, exhaust, getAvailableSize, getDigest, getDisposition, getExpirationDate, getRange, getRegistration, getSize, getText, hasKnownSize, isAvailable, isEmpty, isSelectable, isTransient, setAvailable, setDigest, setDisposition, setExpirationDate, setListener, setRange, setSize, setTransient
getModificationDate, getTag, setModificationDate, setTag
createClientInfo, equals, getCharacterSet, getEncodings, getLanguages, getLocationRef, getMediaType, hashCode, includes, isCompatible, setCharacterSet, setEncodings, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
public TikaRepresentation(Representation representation)
representation
- The wrapped representation to analyze.public TikaRepresentation(Representation representation, org.apache.tika.config.TikaConfig tikaConfig)
representation
- The wrapped representation to analyze.tikaConfig
- The optional Tika configuration.public TikaRepresentation(Representation representation, org.apache.tika.config.TikaConfig tikaConfig, org.apache.tika.parser.Parser tikaParser)
representation
- The wrapped representation to analyze.tikaConfig
- The optional Tika configuration.tikaParser
- The optional Tika parser.public org.apache.tika.metadata.Metadata getMetadata()
public org.apache.tika.config.TikaConfig getTikaConfig()
public org.apache.tika.parser.Parser getTikaParser()
public void parse(org.xml.sax.ContentHandler contentHandler) throws java.io.IOException
parse
in class SaxRepresentation
contentHandler
- The target SAX handler.java.io.IOException
public void setMetadata(org.apache.tika.metadata.Metadata metadata)
metadata
- The Tika metadata.public void setTikaConfig(org.apache.tika.config.TikaConfig tikaConfig)
tikaConfig
- The Tika configuration.public void setTikaParser(org.apache.tika.parser.Parser tikaParser)
tikaParser
- The Tika parser.Copyright © 2005-2024 Restlet.