|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.poifs.property.Property org.apache.poi.poifs.property.DirectoryProperty
public class DirectoryProperty
Directory property
Nested Class Summary | |
---|---|
static class |
DirectoryProperty.PropertyComparator
|
Field Summary |
---|
Fields inherited from class org.apache.poi.poifs.property.Property |
---|
_NO_INDEX, _NODE_BLACK, _NODE_RED |
Constructor Summary | |
---|---|
protected |
DirectoryProperty(int index,
byte[] array,
int offset)
reader constructor |
|
DirectoryProperty(java.lang.String name)
Default constructor |
Method Summary | |
---|---|
void |
addChild(Property property)
Add a new child to the collection of children |
boolean |
changeName(Property property,
java.lang.String newName)
Change a Property's name |
boolean |
deleteChild(Property property)
Delete a Property |
java.util.Iterator<Property> |
getChildren()
Get an iterator over the children of this Parent; all elements are instances of Property. |
boolean |
isDirectory()
|
protected void |
preWrite()
Perform whatever activities need to be performed prior to writing |
Methods inherited from class org.apache.poi.poifs.property.Property |
---|
getChildIndex, getIndex, getName, getNextChild, getPreviousChild, getShortDescription, getSize, getStartBlock, getStorageClsid, getViewableArray, getViewableIterator, isSmall, preferArray, setChildProperty, setIndex, setName, setNextChild, setNodeColor, setPreviousChild, setPropertyType, setSize, setStartBlock, setStorageClsid, shouldUseSmallBlocks, writeData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.poi.poifs.property.Parent |
---|
setNextChild, setPreviousChild |
Methods inherited from interface org.apache.poi.poifs.property.Child |
---|
getNextChild, getPreviousChild |
Constructor Detail |
---|
public DirectoryProperty(java.lang.String name)
name
- the name of the directoryprotected DirectoryProperty(int index, byte[] array, int offset)
index
- index numberarray
- byte dataoffset
- offset into byte dataMethod Detail |
---|
public boolean changeName(Property property, java.lang.String newName)
property
- the Property whose name is being changednewName
- the new name for the Property
public boolean deleteChild(Property property)
property
- the Property being deleted
public boolean isDirectory()
isDirectory
in class Property
protected void preWrite()
preWrite
in class Property
public java.util.Iterator<Property> getChildren()
getChildren
in interface Parent
public void addChild(Property property) throws java.io.IOException
addChild
in interface Parent
property
- the new child to be added; must not be null
java.io.IOException
- if we already have a child with the same
name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |