| java.lang.Object org.apache.poi.POIDocument org.apache.poi.hslf.HSLFSlideShow
HSLFSlideShow | public class HSLFSlideShow extends POIDocument (Code) | | This class contains the main functionality for the Powerpoint file
"reader". It is only a very basic class for now
author: Nick Burch |
HSLFSlideShow | public HSLFSlideShow(String fileName) throws IOException(Code) | | Constructs a Powerpoint document from fileName. Parses the document
and places all the important stuff into data structures.
Parameters: fileName - The name of the file to read. throws: IOException - if there is a problem while parsing the document. |
HSLFSlideShow | public HSLFSlideShow(InputStream inputStream) throws IOException(Code) | | Constructs a Powerpoint document from an input stream. Parses the
document and places all the important stuff into data structures.
Parameters: inputStream - the source of the data throws: IOException - if there is a problem while parsing the document. |
HSLFSlideShow | public HSLFSlideShow(POIFSFileSystem filesystem) throws IOException(Code) | | Constructs a Powerpoint document from a POIFS Filesystem. Parses the
document and places all the important stuff into data structures.
Parameters: filesystem - the POIFS FileSystem to read from throws: IOException - if there is a problem while parsing the document. |
HSLFSlideShow | public HSLFSlideShow() throws IOException(Code) | | Constructs a new, empty, Powerpoint document.
|
addPicture | public void addPicture(PictureData img)(Code) | | Add a new picture to this presentation.
|
appendRootLevelRecord | public synchronized int appendRootLevelRecord(Record newRecord)(Code) | | Adds a new root level record, at the end, but before the last
PersistPtrIncrementalBlock.
|
getCurrentUserAtom | public CurrentUserAtom getCurrentUserAtom()(Code) | | Fetch the Current User Atom of the document
|
getEmbeddedObjects | public ObjectData[] getEmbeddedObjects()(Code) | | Gets embedded object data from the slide show.
the embedded objects. |
getPOIFSFileSystem | protected POIFSFileSystem getPOIFSFileSystem()(Code) | | Returns the underlying POIFSFileSystem for the document
that is open.
|
getPictures | public PictureData[] getPictures()(Code) | | Return array of pictures contained in this presentation
array with the read pictures or null if thepresentation doesn't contain pictures. |
getRecords | public Record[] getRecords()(Code) | | Returns an array of all the records found in the slideshow
|
getUnderlyingBytes | public byte[] getUnderlyingBytes()(Code) | | Returns an array of the bytes of the file. Only correct after a
call to open or write - at all other times might be wrong!
|
write | public void write(OutputStream out) throws IOException(Code) | | Writes out the slideshow file the is represented by an instance
of this class.
It will write out the common OLE2 streams. If you require all
streams to be written out, pass in preserveNodes
Parameters: out - The OutputStream to write to. throws: IOException - If there is an unexpected IOException fromthe passed in OutputStream |
write | public void write(OutputStream out, boolean preserveNodes) throws IOException(Code) | | Writes out the slideshow file the is represented by an instance
of this class.
If you require all streams to be written out (eg Marcos, embeded
documents), then set preserveNodes to true
Parameters: out - The OutputStream to write to. Parameters: preserveNodes - Should all OLE2 streams be written back out, or only the common ones? throws: IOException - If there is an unexpected IOException fromthe passed in OutputStream |
|
|