|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.poifs.filesystem.NPOIFSDocument
public final class NPOIFSDocument
This class manages a document in the NIO POIFS filesystem.
This is the NPOIFSFileSystem
version.
Constructor Summary | |
---|---|
NPOIFSDocument(DocumentProperty property,
NPOIFSFileSystem filesystem)
Constructor for an existing Document |
|
NPOIFSDocument(java.lang.String name,
NPOIFSFileSystem filesystem,
java.io.InputStream stream)
Constructor for a new Document |
Method Summary | |
---|---|
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 |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NPOIFSDocument(DocumentProperty property, NPOIFSFileSystem filesystem) throws java.io.IOException
java.io.IOException
public 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 from
java.io.IOException
Method Detail |
---|
public int getSize()
public java.lang.Object[] getViewableArray()
getViewableArray
in interface POIFSViewable
public java.util.Iterator getViewableIterator()
getViewableIterator
in interface POIFSViewable
public boolean preferArray()
preferArray
in interface POIFSViewable
true
if a viewer should call getViewableArray,
false
if a viewer should call getViewableIteratorpublic java.lang.String getShortDescription()
getShortDescription
in interface POIFSViewable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |