|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.POIDocument
org.apache.poi.hslf.HSLFSlideShow
public final class HSLFSlideShow
This class contains the main functionality for the Powerpoint file "reader". It is only a very basic class for now
| Constructor Summary | |
|---|---|
HSLFSlideShow(org.apache.poi.poifs.filesystem.DirectoryNode dir)
Constructs a Powerpoint document from a specific point in a POIFS Filesystem. |
|
HSLFSlideShow(org.apache.poi.poifs.filesystem.DirectoryNode dir,
org.apache.poi.poifs.filesystem.POIFSFileSystem filesystem)
Deprecated. Use HSLFSlideShow(DirectoryNode) instead |
|
HSLFSlideShow(java.io.InputStream inputStream)
Constructs a Powerpoint document from an input stream. |
|
HSLFSlideShow(org.apache.poi.poifs.filesystem.NPOIFSFileSystem filesystem)
Constructs a Powerpoint document from a POIFS Filesystem. |
|
HSLFSlideShow(org.apache.poi.poifs.filesystem.POIFSFileSystem filesystem)
Constructs a Powerpoint document from a POIFS Filesystem. |
|
HSLFSlideShow(java.lang.String fileName)
Constructs a Powerpoint document from fileName. |
|
| Method Summary | |
|---|---|
int |
addPicture(PictureData img)
Add a new picture to this presentation. |
int |
appendRootLevelRecord(Record newRecord)
Adds a new root level record, at the end, but before the last PersistPtrIncrementalBlock. |
static HSLFSlideShow |
create()
Constructs a new, empty, Powerpoint document. |
CurrentUserAtom |
getCurrentUserAtom()
Fetch the Current User Atom of the document |
ObjectData[] |
getEmbeddedObjects()
Gets embedded object data from the slide show. |
PictureData[] |
getPictures()
Return array of pictures contained in this presentation |
Record[] |
getRecords()
Returns an array of all the records found in the slideshow |
byte[] |
getUnderlyingBytes()
Returns an array of the bytes of the file. |
void |
write(java.io.OutputStream out)
Writes out the slideshow file the is represented by an instance of this class. |
void |
write(java.io.OutputStream out,
boolean preserveNodes)
Writes out the slideshow file the is represented by an instance of this class. |
| Methods inherited from class org.apache.poi.POIDocument |
|---|
createInformationProperties, getDocumentSummaryInformation, getSummaryInformation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HSLFSlideShow(java.lang.String fileName)
throws java.io.IOException
fileName - The name of the file to read.
java.io.IOException - if there is a problem while parsing the document.
public HSLFSlideShow(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - the source of the data
java.io.IOException - if there is a problem while parsing the document.
public HSLFSlideShow(org.apache.poi.poifs.filesystem.POIFSFileSystem filesystem)
throws java.io.IOException
filesystem - the POIFS FileSystem to read from
java.io.IOException - if there is a problem while parsing the document.
public HSLFSlideShow(org.apache.poi.poifs.filesystem.NPOIFSFileSystem filesystem)
throws java.io.IOException
filesystem - the POIFS FileSystem to read from
java.io.IOException - if there is a problem while parsing the document.
public HSLFSlideShow(org.apache.poi.poifs.filesystem.DirectoryNode dir,
org.apache.poi.poifs.filesystem.POIFSFileSystem filesystem)
throws java.io.IOException
HSLFSlideShow(DirectoryNode) instead
dir - the POIFS directory to read fromfilesystem - the POIFS FileSystem to read from
java.io.IOException - if there is a problem while parsing the document.
public HSLFSlideShow(org.apache.poi.poifs.filesystem.DirectoryNode dir)
throws java.io.IOException
dir - the POIFS directory to read from
java.io.IOException - if there is a problem while parsing the document.| Method Detail |
|---|
public static final HSLFSlideShow create()
public void write(java.io.OutputStream out)
throws java.io.IOException
write in class org.apache.poi.POIDocumentout - The OutputStream to write to.
java.io.IOException - If there is an unexpected IOException from
the passed in OutputStream
public void write(java.io.OutputStream out,
boolean preserveNodes)
throws java.io.IOException
out - The OutputStream to write to.preserveNodes - Should all OLE2 streams be written back out, or only the common ones?
java.io.IOException - If there is an unexpected IOException from
the passed in OutputStreampublic int appendRootLevelRecord(Record newRecord)
public int addPicture(PictureData img)
public Record[] getRecords()
public byte[] getUnderlyingBytes()
public CurrentUserAtom getCurrentUserAtom()
public PictureData[] getPictures()
null if the
presentation doesn't contain pictures.public ObjectData[] getEmbeddedObjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||