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
 
 @Beta public class EmbeddedExtractor extends Object implements Iterable<EmbeddedExtractor> 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 SummaryNested Classes Modifier and Type Class Description static classEmbeddedExtractor.Ole10Extractor
 - 
Constructor SummaryConstructors Constructor Description EmbeddedExtractor()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExtract(DirectoryNode source)booleancanExtract(Picture source)protected static voidcopyNodes(DirectoryNode src, DirectoryNode dest)protected EmbeddedDataextract(DirectoryNode dn)protected EmbeddedDataextract(Picture source)protected voidextractAll(ShapeContainer<?> parent, List<EmbeddedData> embeddings)List<EmbeddedData>extractAll(Sheet sheet)EmbeddedDataextractOne(DirectoryNode src)EmbeddedDataextractOne(Picture src)static intgetMaxRecordLength()Iterator<EmbeddedExtractor>iterator()static voidsetMaxRecordLength(int length)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Method Detail- 
setMaxRecordLengthpublic static void setMaxRecordLength(int length) - Parameters:
- length- the max record length allowed for EmbeddedExtractor
 
 - 
getMaxRecordLengthpublic static int getMaxRecordLength() - Returns:
- the max record length allowed for EmbeddedExtractor
 
 - 
iteratorpublic Iterator<EmbeddedExtractor> iterator() - Specified by:
- iteratorin interface- Iterable<EmbeddedExtractor>
- Returns:
- the list of known extractors, if you provide custom extractors, override this method
 
 - 
extractOnepublic EmbeddedData extractOne(DirectoryNode src) throws IOException - Throws:
- IOException
 
 - 
extractOnepublic EmbeddedData extractOne(Picture src) throws IOException - Throws:
- IOException
 
 - 
extractAllpublic List<EmbeddedData> extractAll(Sheet sheet) throws IOException - Throws:
- IOException
 
 - 
extractAllprotected void extractAll(ShapeContainer<?> parent, List<EmbeddedData> embeddings) throws IOException - Throws:
- IOException
 
 - 
canExtractpublic boolean canExtract(DirectoryNode source) 
 - 
canExtractpublic boolean canExtract(Picture source) 
 - 
extractprotected EmbeddedData extract(DirectoryNode dn) throws IOException - Throws:
- IOException
 
 - 
extractprotected EmbeddedData extract(Picture source) throws IOException - Throws:
- IOException
 
 - 
copyNodesprotected static void copyNodes(DirectoryNode src, DirectoryNode dest) throws IOException - Throws:
- IOException
 
 
- 
 
-