public final class PowerPointExtractor extends POIOLE2TextExtractor
document
Constructor and Description |
---|
PowerPointExtractor(DirectoryNode dir)
Creates a PowerPointExtractor, from a specific place
inside an open NPOIFSFileSystem
|
PowerPointExtractor(DirectoryNode dir,
POIFSFileSystem fs)
Deprecated.
Use
PowerPointExtractor(DirectoryNode) instead |
PowerPointExtractor(HSLFSlideShow ss)
Creates a PowerPointExtractor, from a HSLFSlideShow
|
PowerPointExtractor(InputStream iStream)
Creates a PowerPointExtractor, from an Input Stream
|
PowerPointExtractor(NPOIFSFileSystem fs)
Creates a PowerPointExtractor, from an open NPOIFSFileSystem
|
PowerPointExtractor(POIFSFileSystem fs)
Creates a PowerPointExtractor, from an open POIFSFileSystem
|
PowerPointExtractor(String fileName)
Creates a PowerPointExtractor, from a file
|
Modifier and Type | Method and Description |
---|---|
String |
getNotes()
Fetches all the notes text from the slideshow, but not the slide text
|
List<OLEShape> |
getOLEShapes() |
String |
getText()
Fetches all the slide text from the slideshow, but not the notes, unless
you've called setSlidesByDefault() and setNotesByDefault() to change this
|
String |
getText(boolean getSlideText,
boolean getNoteText)
Fetches text from the slideshow, be it slide text or note text.
|
String |
getText(boolean getSlideText,
boolean getNoteText,
boolean getCommentText,
boolean getMasterText) |
static void |
main(String[] args)
Basic extractor.
|
void |
setCommentsByDefault(boolean commentsByDefault)
Should a call to getText() return comments text? Default is no
|
void |
setMasterByDefault(boolean masterByDefault)
Should a call to getText() return text from master? Default is no
|
void |
setNotesByDefault(boolean notesByDefault)
Should a call to getText() return notes text? Default is no
|
void |
setSlidesByDefault(boolean slidesByDefault)
Should a call to getText() return slide text? Default is yes
|
getDocSummaryInformation, getFileSystem, getMetadataTextExtractor, getRoot, getSummaryInformation
public PowerPointExtractor(String fileName) throws IOException
fileName
- The name of the file to extract fromIOException
public PowerPointExtractor(InputStream iStream) throws IOException
iStream
- The input stream containing the PowerPoint documentIOException
public PowerPointExtractor(POIFSFileSystem fs) throws IOException
fs
- the POIFSFileSystem containing the PowerPoint documentIOException
public PowerPointExtractor(NPOIFSFileSystem fs) throws IOException
fs
- the NPOIFSFileSystem containing the PowerPoint documentIOException
public PowerPointExtractor(DirectoryNode dir) throws IOException
dir
- the POIFS Directory containing the PowerPoint documentIOException
@Deprecated public PowerPointExtractor(DirectoryNode dir, POIFSFileSystem fs) throws IOException
PowerPointExtractor(DirectoryNode)
insteadIOException
public PowerPointExtractor(HSLFSlideShow ss)
ss
- the HSLFSlideShow to extract text frompublic static void main(String[] args) throws IOException
IOException
public void setSlidesByDefault(boolean slidesByDefault)
public void setNotesByDefault(boolean notesByDefault)
public void setCommentsByDefault(boolean commentsByDefault)
public void setMasterByDefault(boolean masterByDefault)
public String getText()
getText
in class POITextExtractor
public String getNotes()
public String getText(boolean getSlideText, boolean getNoteText)
getSlideText
- fetch slide textgetNoteText
- fetch note textpublic String getText(boolean getSlideText, boolean getNoteText, boolean getCommentText, boolean getMasterText)
Copyright © 2020. All rights reserved.