public final class HSLFSlideShow extends POIDocument
directory
Constructor and Description |
---|
HSLFSlideShow(DirectoryNode dir)
Constructs a Powerpoint document from a specific point in a
POIFS Filesystem.
|
HSLFSlideShow(DirectoryNode dir,
POIFSFileSystem filesystem)
Deprecated.
Use
HSLFSlideShow(DirectoryNode) instead |
HSLFSlideShow(InputStream inputStream)
Constructs a Powerpoint document from an input stream.
|
HSLFSlideShow(NPOIFSFileSystem filesystem)
Constructs a Powerpoint document from a POIFS Filesystem.
|
HSLFSlideShow(POIFSFileSystem filesystem)
Constructs a Powerpoint document from a POIFS Filesystem.
|
HSLFSlideShow(String fileName)
Constructs a Powerpoint document from fileName.
|
Modifier and Type | Method and Description |
---|---|
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
|
protected DirectoryNode |
getPOIFSDirectory()
Returns the directory in the underlying POIFSFileSystem for the
document that is open.
|
protected POIFSFileSystem |
getPOIFSFileSystem()
Returns the underlying POIFSFileSystem for the document
that is open.
|
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(OutputStream out)
Writes out the slideshow file the is represented by an instance
of this class.
|
void |
write(OutputStream out,
boolean preserveNodes)
Writes out the slideshow file the is represented by an instance
of this class.
|
copyNodeRecursively, copyNodes, copyNodes, createInformationProperties, getDocumentSummaryInformation, getPropertySet, getSummaryInformation, readProperties, writeProperties, writeProperties, writePropertySet
public HSLFSlideShow(String fileName) throws IOException
fileName
- The name of the file to read.IOException
- if there is a problem while parsing the document.public HSLFSlideShow(InputStream inputStream) throws IOException
inputStream
- the source of the dataIOException
- if there is a problem while parsing the document.public HSLFSlideShow(POIFSFileSystem filesystem) throws IOException
filesystem
- the POIFS FileSystem to read fromIOException
- if there is a problem while parsing the document.public HSLFSlideShow(NPOIFSFileSystem filesystem) throws IOException
filesystem
- the POIFS FileSystem to read fromIOException
- if there is a problem while parsing the document.@Deprecated public HSLFSlideShow(DirectoryNode dir, POIFSFileSystem filesystem) throws IOException
HSLFSlideShow(DirectoryNode)
insteaddir
- the POIFS directory to read fromfilesystem
- the POIFS FileSystem to read fromIOException
- if there is a problem while parsing the document.public HSLFSlideShow(DirectoryNode dir) throws IOException
dir
- the POIFS directory to read fromIOException
- if there is a problem while parsing the document.protected POIFSFileSystem getPOIFSFileSystem()
protected DirectoryNode getPOIFSDirectory()
public static final HSLFSlideShow create()
public void write(OutputStream out) throws IOException
write
in class POIDocument
out
- The OutputStream to write to.IOException
- If there is an unexpected IOException from
the passed in OutputStreampublic void write(OutputStream out, boolean preserveNodes) throws IOException
out
- The OutputStream to write to.preserveNodes
- Should all OLE2 streams be written back out, or only the common ones?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()
Copyright © 2020. All rights reserved.