public final class NPOIFSDocument extends java.lang.Object implements POIFSViewable
NPOIFSFileSystem version.| Constructor and Description |
|---|
NPOIFSDocument(DocumentNode document)
Constructor for an existing Document
|
NPOIFSDocument(DocumentProperty property,
NPOIFSFileSystem filesystem)
Constructor for an existing Document
|
NPOIFSDocument(java.lang.String name,
int size,
NPOIFSFileSystem filesystem,
POIFSWriterListener writer) |
NPOIFSDocument(java.lang.String name,
NPOIFSFileSystem filesystem,
java.io.InputStream stream)
Constructor for a new Document
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getShortDescription()
Provides a short description of the object, to be used when a
POIFSViewable object has not provided its contents.
|
int |
getSize() |
java.lang.Object[] |
getViewableArray()
Get an array of objects, some of which may implement POIFSViewable
|
java.util.Iterator<java.lang.Object> |
getViewableIterator()
Get an Iterator of objects, some of which may implement POIFSViewable
|
boolean |
preferArray()
Give viewers a hint as to whether to call getViewableArray or
getViewableIterator
|
void |
replaceContents(java.io.InputStream stream) |
public NPOIFSDocument(DocumentNode document) throws java.io.IOException
java.io.IOExceptionpublic NPOIFSDocument(DocumentProperty property, NPOIFSFileSystem filesystem) throws java.io.IOException
java.io.IOExceptionpublic NPOIFSDocument(java.lang.String name,
NPOIFSFileSystem filesystem,
java.io.InputStream stream)
throws java.io.IOException
name - the name of the POIFSDocumentstream - the InputStream we read data fromjava.io.IOExceptionpublic NPOIFSDocument(java.lang.String name,
int size,
NPOIFSFileSystem filesystem,
POIFSWriterListener writer)
throws java.io.IOException
java.io.IOExceptionpublic int getSize()
public void replaceContents(java.io.InputStream stream)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object[] getViewableArray()
getViewableArray in interface POIFSViewablepublic java.util.Iterator<java.lang.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 java.lang.String getShortDescription()
getShortDescription in interface POIFSViewableCopyright 2018 The Apache Software Foundation or its licensors, as applicable.