Package org.apache.poi.ss.extractor
Class EmbeddedExtractor
java.lang.Object
org.apache.poi.ss.extractor.EmbeddedExtractor
- All Implemented Interfaces:
Iterable<EmbeddedExtractor>
- Direct Known Subclasses:
EmbeddedExtractor.Ole10Extractor
This extractor class tries to identify various embedded documents within Excel files
and provide them via a common interface, i.e. the EmbeddedData instances
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExtract(DirectoryNode source) booleancanExtract(Picture source) protected static voidcopyNodes(DirectoryNode src, DirectoryNode dest) protected EmbeddedDataextract(DirectoryNode dn) protected EmbeddedDataprotected voidextractAll(ShapeContainer<?> parent, List<EmbeddedData> embeddings) extractAll(Sheet sheet) extractOne(DirectoryNode src) extractOne(Picture src) iterator()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EmbeddedExtractor
public EmbeddedExtractor()
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<EmbeddedExtractor>- Returns:
- the list of known extractors, if you provide custom extractors, override this method
-
extractOne
- Throws:
IOException
-
extractOne
- Throws:
IOException
-
extractAll
- Throws:
IOException
-
extractAll
protected void extractAll(ShapeContainer<?> parent, List<EmbeddedData> embeddings) throws IOException - Throws:
IOException
-
canExtract
-
canExtract
-
extract
- Throws:
IOException
-
extract
- Throws:
IOException
-
copyNodes
- Throws:
IOException
-