Package org.apache.tika.detect.zip
Class StreamingDetectContext
java.lang.Object
org.apache.tika.detect.zip.StreamingDetectContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
Returns the object in this context that implements the given interface.<T> T
Returns the object in this context that implements the given interface, or the given default value if such an object is not found.void
<T> void
Adds the given value to the context as an implementation of the given interface.
-
Constructor Details
-
StreamingDetectContext
public StreamingDetectContext()
-
-
Method Details
-
set
Adds the given value to the context as an implementation of the given interface.- Parameters:
key
- the interface implemented by the given valuevalue
- the value to be added, ornull
to remove
-
get
Returns the object in this context that implements the given interface.- Parameters:
key
- the interface implemented by the requested object- Returns:
- the object that implements the given interface,
or
null
if not found
-
get
Returns the object in this context that implements the given interface, or the given default value if such an object is not found.- Parameters:
key
- the interface implemented by the requested objectdefaultValue
- value to return if the requested object is not found- Returns:
- the object that implements the given interface, or the given default value if not found
-
remove
-