Package org.apache.tika.extractor
Class BasicEmbeddedDocumentBytesHandler
java.lang.Object
org.apache.tika.extractor.AbstractEmbeddedDocumentBytesHandler
org.apache.tika.extractor.BasicEmbeddedDocumentBytesHandler
- All Implemented Interfaces:
Closeable,AutoCloseable,EmbeddedDocumentBytesHandler
For now, this is an in-memory EmbeddedDocumentBytesHandler that stores
all the bytes in memory. Users can retrieve the documents with
getDocument(int).
We'll need to make this cache to disk at some point if there are many bytes of
embedded documents.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int id, Metadata metadata, InputStream is) voidclose()getDocument(int id) Methods inherited from class org.apache.tika.extractor.AbstractEmbeddedDocumentBytesHandler
getEmitKey, getIds
-
Constructor Details
-
BasicEmbeddedDocumentBytesHandler
-
-
Method Details
-
add
- Specified by:
addin interfaceEmbeddedDocumentBytesHandler- Overrides:
addin classAbstractEmbeddedDocumentBytesHandler- Throws:
IOException
-
getDocument
- Throws:
IOException
-
close
- Throws:
IOException
-