public final class NPOIFSDocument extends Object implements POIFSViewable
NPOIFSFileSystem version.| Constructor and Description |
|---|
NPOIFSDocument(DocumentProperty property,
NPOIFSFileSystem filesystem)
Constructor for an existing Document
|
NPOIFSDocument(String name,
NPOIFSFileSystem 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 |
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
|
public NPOIFSDocument(DocumentProperty property, NPOIFSFileSystem filesystem) throws IOException
IOExceptionpublic NPOIFSDocument(String name, NPOIFSFileSystem filesystem, InputStream stream) throws IOException
name - the name of the POIFSDocumentstream - the InputStream we read data fromIOExceptionpublic int getSize()
public Object[] getViewableArray()
getViewableArray in interface POIFSViewablepublic Iterator 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 © 2020. All rights reserved.