public final class POIFSDocument extends Object implements POIFSViewable, Iterable<ByteBuffer>
POIFSFileSystem version.| Constructor and Description |
|---|
POIFSDocument(DocumentNode document)
Constructor for an existing Document
|
POIFSDocument(DocumentProperty property,
POIFSFileSystem filesystem)
Constructor for an existing Document
|
POIFSDocument(String name,
int size,
POIFSFileSystem filesystem,
POIFSWriterListener writer) |
POIFSDocument(String name,
POIFSFileSystem filesystem,
InputStream stream)
Constructor for a new Document
|
| Modifier and Type | Method and Description |
|---|---|
String |
getShortDescription()
Provides a short description of the object, to be used when a
POIFSViewable object has not provided its contents.
|
int |
getSize() |
Object[] |
getViewableArray()
Get an array of objects, some of which may implement POIFSViewable
|
Iterator<Object> |
getViewableIterator()
Get an Iterator of objects, some of which may implement POIFSViewable
|
Iterator<ByteBuffer> |
iterator() |
boolean |
preferArray()
Give viewers a hint as to whether to call getViewableArray or
getViewableIterator
|
void |
replaceContents(InputStream stream) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic POIFSDocument(DocumentNode document)
public POIFSDocument(DocumentProperty property, POIFSFileSystem filesystem)
public POIFSDocument(String name, POIFSFileSystem filesystem, InputStream stream) throws IOException
name - the name of the POIFSDocumentstream - the InputStream we read data fromIOExceptionpublic POIFSDocument(String name, int size, POIFSFileSystem filesystem, POIFSWriterListener writer) throws IOException
IOExceptionpublic Iterator<ByteBuffer> iterator()
iterator in interface Iterable<ByteBuffer>public int getSize()
public void replaceContents(InputStream stream) throws IOException
IOExceptionpublic Object[] getViewableArray()
getViewableArray in interface POIFSViewablepublic Iterator<Object> getViewableIterator()
getViewableIterator in interface POIFSViewablepublic boolean preferArray()
preferArray in interface POIFSViewabletrue if a viewer should call getViewableArray,
false if a viewer should call getViewableIteratorpublic String getShortDescription()
getShortDescription in interface POIFSViewableCopyright © 2010 - 2020 Adobe. All Rights Reserved