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 TypeMethodDescriptionboolean
canExtract
(DirectoryNode source) boolean
canExtract
(Picture source) protected static void
copyNodes
(DirectoryNode src, DirectoryNode dest) protected EmbeddedData
extract
(DirectoryNode dn) protected EmbeddedData
protected void
extractAll
(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, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
EmbeddedExtractor
public EmbeddedExtractor()
-
-
Method Details
-
iterator
- Specified by:
iterator
in 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
-