Package org.apache.poi.sl.extractor
Class SlideShowExtractor<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
java.lang.Object
org.apache.poi.extractor.POITextExtractor
org.apache.poi.sl.extractor.SlideShowExtractor<S,P>
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class SlideShowExtractor<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>>
extends POITextExtractor
Common SlideShow extractor
- Since:
- POI 4.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object
Returns opened documentReturns another text extractor, which is able to output the textual content of the document metadata / properties, such as author and title.List
<? extends ObjectShape<S, P>> getText()
Fetches all the slide text from the slideshow, but not the notes, unless you've called setSlidesByDefault() and setNotesByDefault() to change thisvoid
setCommentsByDefault
(boolean commentsByDefault) Should a call to getText() return comments text? Default is novoid
setMasterByDefault
(boolean masterByDefault) Should a call to getText() return text from master? Default is novoid
setNotesByDefault
(boolean notesByDefault) Should a call to getText() return notes text? Default is novoid
setSlidesByDefault
(boolean slidesByDefault) Should a call to getText() return slide text? Default is yesMethods inherited from class org.apache.poi.extractor.POITextExtractor
close, setFilesystem
-
Constructor Details
-
SlideShowExtractor
-
-
Method Details
-
getDocument
Returns opened document- Specified by:
getDocument
in classPOITextExtractor
- Returns:
- the opened document
-
setSlidesByDefault
public void setSlidesByDefault(boolean slidesByDefault) Should a call to getText() return slide text? Default is yes -
setNotesByDefault
public void setNotesByDefault(boolean notesByDefault) Should a call to getText() return notes text? Default is no -
setCommentsByDefault
public void setCommentsByDefault(boolean commentsByDefault) Should a call to getText() return comments text? Default is no -
setMasterByDefault
public void setMasterByDefault(boolean masterByDefault) Should a call to getText() return text from master? Default is no -
getMetadataTextExtractor
Description copied from class:POITextExtractor
Returns another text extractor, which is able to output the textual content of the document metadata / properties, such as author and title.- Specified by:
getMetadataTextExtractor
in classPOITextExtractor
- Returns:
- the metadata and text extractor
-
getText
Fetches all the slide text from the slideshow, but not the notes, unless you've called setSlidesByDefault() and setNotesByDefault() to change this- Specified by:
getText
in classPOITextExtractor
- Returns:
- All the text from the document
-
getText
-
getOLEShapes
-