public abstract class Property extends Object implements Child, POIFSViewable
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the name of this property
|
Child |
getNextChild()
Get the next Child, if any
|
Child |
getPreviousChild()
Get the previous Child, if any
|
String |
getShortDescription()
Provides a short description of the object, to be used when a
POIFSViewable object has not provided its contents.
|
int |
getSize()
find out the document size
|
int |
getStartBlock() |
ClassID |
getStorageClsid()
Sets the storage clsid, which is the Class ID of a COM object which
reads and writes this stream
|
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
|
abstract boolean |
isDirectory() |
static boolean |
isSmall(int length)
does the length indicate a small document?
|
boolean |
preferArray()
Give viewers a hint as to whether to call getViewableArray or
getViewableIterator
|
void |
setNextChild(Child child)
Set the next Child
|
void |
setPreviousChild(Child child)
Set the previous Child
|
void |
setStartBlock(int startBlock)
Set the start block for the document referred to by this
Property.
|
void |
setStorageClsid(ClassID clsidStorage)
Sets the storage class ID for this property stream.
|
boolean |
shouldUseSmallBlocks()
Based on the currently defined size, should this property use
small blocks?
|
void |
writeData(OutputStream stream)
Write the raw data to an OutputStream.
|
public void writeData(OutputStream stream) throws IOException
stream - the OutputStream to which the data should be
written.IOException - on problems writing to the specified
stream.public void setStartBlock(int startBlock)
startBlock - the start block indexpublic int getStartBlock()
public int getSize()
public boolean shouldUseSmallBlocks()
public static boolean isSmall(int length)
length - length in bytespublic String getName()
public abstract boolean isDirectory()
public ClassID getStorageClsid()
public void setStorageClsid(ClassID clsidStorage)
clsidStorage - Storage Class IDpublic Child getNextChild()
getNextChild in interface Childpublic Child getPreviousChild()
getPreviousChild in interface Childpublic void setNextChild(Child child)
setNextChild in interface Childchild - the new 'next' child; may be null, which has the
effect of saying there is no 'next' childpublic void setPreviousChild(Child child)
setPreviousChild in interface Childchild - the new 'previous' child; may be null, which has
the effect of saying there is no 'previous' childpublic Object[] getViewableArray()
getViewableArray in interface POIFSViewablepublic Iterator<Object> getViewableIterator()
getViewableIterator in interface POIFSViewablepublic boolean preferArray()
preferArray in interface POIFSViewablepublic String getShortDescription()
getShortDescription in interface POIFSViewableCopyright © 2010 - 2020 Adobe. All Rights Reserved