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
 
 public class BasicEmbeddedDocumentBytesHandler extends AbstractEmbeddedDocumentBytesHandler For now, this is an in-memory EmbeddedDocumentBytesHandler that stores all the bytes in memory. Users can retrieve the documents withgetDocument(int). We'll need to make this cache to disk at some point if there are many bytes of embedded documents.
- 
- 
Constructor SummaryConstructors Constructor Description BasicEmbeddedDocumentBytesHandler(EmbeddedDocumentBytesConfig config)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int id, Metadata metadata, InputStream is)voidclose()InputStreamgetDocument(int id)- 
Methods inherited from class org.apache.tika.extractor.AbstractEmbeddedDocumentBytesHandlergetEmitKey, getIds
 
- 
 
- 
- 
- 
Constructor Detail- 
BasicEmbeddedDocumentBytesHandlerpublic BasicEmbeddedDocumentBytesHandler(EmbeddedDocumentBytesConfig config) 
 
- 
 - 
Method Detail- 
addpublic void add(int id, Metadata metadata, InputStream is) throws IOException- Specified by:
- addin interface- EmbeddedDocumentBytesHandler
- Overrides:
- addin class- AbstractEmbeddedDocumentBytesHandler
- Throws:
- IOException
 
 - 
getDocumentpublic InputStream getDocument(int id) throws IOException - Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Throws:
- IOException
 
 
- 
 
-