|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tika.parser.ParseContext
public class ParseContext
Parse context. Used to pass context information to Tika parsers.
Constructor Summary | |
---|---|
ParseContext()
|
Method Summary | ||
---|---|---|
|
get(java.lang.Class<T> key)
Returns the object in this context that implements the given interface. |
|
|
get(java.lang.Class<T> key,
T defaultValue)
Returns the object in this context that implements the given interface, or the given default value if such an object is not found. |
|
javax.xml.parsers.SAXParser |
getSAXParser()
Returns the SAX parser specified in this parsing context. |
|
javax.xml.parsers.SAXParserFactory |
getSAXParserFactory()
Returns the SAX parser factory specified in this parsing context. |
|
|
set(java.lang.Class<T> key,
T value)
Adds the given value to the context as an implementation of the given interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParseContext()
Method Detail |
---|
public <T> void set(java.lang.Class<T> key, T value)
key
- the interface implemented by the given valuevalue
- the value to be added, or null
to removepublic <T> T get(java.lang.Class<T> key)
key
- the interface implemented by the requested object
null
if not foundpublic <T> T get(java.lang.Class<T> key, T defaultValue)
key
- the interface implemented by the requested objectdefaultValue
- value to return if the requested object is not found
public javax.xml.parsers.SAXParser getSAXParser() throws TikaException
TikaException
- if a SAX parser could not be createdgetSAXParserFactory()
public javax.xml.parsers.SAXParserFactory getSAXParserFactory()
secure XML processing
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |