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(java.io.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(java.lang.String fileName)
Creates a PowerPointExtractor, from a file
|
Modifier and Type | Method and Description |
---|---|
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,
boolean getMasterText) |
static void |
main(java.lang.String[] args)
Basic extractor.
|
void |
setCommentsByDefault(boolean commentsByDefault)
Should a call to getText() return comments text?
|
void |
setMasterByDefault(boolean masterByDefault)
Should a call to getText() return text from master?
|
void |
setNotesByDefault(boolean notesByDefault)
Should a call to getText() return notes text?
|
void |
setSlidesByDefault(boolean slidesByDefault)
Should a call to getText() return slide text?
|
getDocSummaryInformation, getFileSystem, getMetadataTextExtractor, getRoot, getSummaryInformation
public PowerPointExtractor(java.lang.String fileName) throws java.io.IOException
fileName
- The name of the file to extract fromjava.io.IOException
public PowerPointExtractor(java.io.InputStream iStream) throws java.io.IOException
iStream
- The input stream containing the PowerPoint documentjava.io.IOException
public PowerPointExtractor(POIFSFileSystem fs) throws java.io.IOException
fs
- the POIFSFileSystem containing the PowerPoint documentjava.io.IOException
public PowerPointExtractor(NPOIFSFileSystem fs) throws java.io.IOException
fs
- the NPOIFSFileSystem containing the PowerPoint documentjava.io.IOException
public PowerPointExtractor(DirectoryNode dir) throws java.io.IOException
dir
- the POIFS Directory containing the PowerPoint documentjava.io.IOException
@Deprecated public PowerPointExtractor(DirectoryNode dir, POIFSFileSystem fs) throws java.io.IOException
PowerPointExtractor(DirectoryNode)
insteadjava.io.IOException
public PowerPointExtractor(HSLFSlideShow ss)
ss
- the HSLFSlideShow to extract text frompublic 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 void setMasterByDefault(boolean masterByDefault)
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, boolean getMasterText)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.