|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.POITextExtractor
org.apache.poi.POIOLE2TextExtractor
org.apache.poi.hslf.extractor.PowerPointExtractor
public final class PowerPointExtractor
This class can be used to extract text from a PowerPoint file. Can optionally also get the notes from one.
Field Summary |
---|
Fields inherited from class org.apache.poi.POITextExtractor |
---|
document |
Constructor Summary | |
---|---|
PowerPointExtractor(DirectoryNode dir,
POIFSFileSystem fs)
|
|
PowerPointExtractor(HSLFSlideShow ss)
Creates a PowerPointExtractor, from a HSLFSlideShow |
|
PowerPointExtractor(java.io.InputStream iStream)
Creates a PowerPointExtractor, from an Input Stream |
|
PowerPointExtractor(POIFSFileSystem fs)
Creates a PowerPointExtractor, from an open POIFSFileSystem |
|
PowerPointExtractor(java.lang.String fileName)
Creates a PowerPointExtractor, from a file |
Method Summary | |
---|---|
java.lang.String |
getNotes()
Fetches all the notes text from the slideshow, but not the slide text |
java.util.List<OLEShape> |
getOLEShapes()
|
java.lang.String |
getText()
Fetches all the slide text from the slideshow, but not the notes, unless you've called setSlidesByDefault() and setNotesByDefault() to change this |
java.lang.String |
getText(boolean getSlideText,
boolean getNoteText)
Fetches text from the slideshow, be it slide text or note text. |
java.lang.String |
getText(boolean getSlideText,
boolean getNoteText,
boolean getCommentText)
|
static void |
main(java.lang.String[] args)
Basic extractor. |
void |
setCommentsByDefault(boolean commentsByDefault)
Should a call to getText() return comments text? 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 |
Methods inherited from class org.apache.poi.POIOLE2TextExtractor |
---|
getDocSummaryInformation, getFileSystem, getMetadataTextExtractor, getSummaryInformation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PowerPointExtractor(java.lang.String fileName) throws java.io.IOException
fileName
- The name of the file to extract from
java.io.IOException
public PowerPointExtractor(java.io.InputStream iStream) throws java.io.IOException
iStream
- The input stream containing the PowerPoint document
java.io.IOException
public PowerPointExtractor(POIFSFileSystem fs) throws java.io.IOException
fs
- the POIFSFileSystem containing the PowerPoint document
java.io.IOException
public PowerPointExtractor(DirectoryNode dir, POIFSFileSystem fs) throws java.io.IOException
java.io.IOException
public PowerPointExtractor(HSLFSlideShow ss)
ss
- the HSLFSlideShow to extract text fromMethod Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void setSlidesByDefault(boolean slidesByDefault)
public void setNotesByDefault(boolean notesByDefault)
public void setCommentsByDefault(boolean commentsByDefault)
public java.lang.String getText()
getText
in class POITextExtractor
public java.lang.String getNotes()
public java.util.List<OLEShape> getOLEShapes()
public java.lang.String getText(boolean getSlideText, boolean getNoteText)
getSlideText
- fetch slide textgetNoteText
- fetch note textpublic java.lang.String getText(boolean getSlideText, boolean getNoteText, boolean getCommentText)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |