Save This Page
Home » cocoon-2.1.11-src » org.apache.cocoon.poi.poifs » property » [javadoc | source]
org.apache.cocoon.poi.poifs.property
abstract public class: Property [javadoc | source]
java.lang.Object
   org.apache.cocoon.poi.poifs.property.Property

All Implemented Interfaces:
    File

Direct Known Subclasses:
    RootProperty, DocumentProperty, LocalProperty, DirectoryProperty, LocalProperty

This abstract base class is the ancestor of all classes implementing POIFS Property behavior.
Field Summary
protected static final  int _NO_INDEX     
static final  int _property_type_offset     
static final  byte _DIRECTORY_TYPE     
static final  byte _DOCUMENT_TYPE     
static final  byte _ROOT_TYPE     
protected static final  byte _NODE_BLACK     
protected static final  byte _NODE_RED     
Constructor:
 protected Property() 
 protected Property(int index,
    byte[] array,
    int offset) 
Method from org.apache.cocoon.poi.poifs.property.Property Summary:
getChildIndex,   getIndex,   getName,   getNextChildIndex,   getNextFile,   getPreviousChildIndex,   getPreviousFile,   getSize,   getStartBlock,   isDirectory,   isSmall,   isValidIndex,   preWrite,   setChildProperty,   setIndex,   setName,   setNextFile,   setNodeColor,   setPreviousFile,   setPropertyType,   setSize,   setStartBlock,   shouldUseSmallBlocks,   writeData
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.poi.poifs.property.Property Detail:
 protected int getChildIndex() 
    Get the child property (its index in the Property Table)
 protected int getIndex() 
    get the index for this Property
 public String getName() 
    Get the name of this property
 int getNextChildIndex() 
    get the next sibling
 public File getNextFile() 
    Get the next File, if any
 int getPreviousChildIndex() 
    get the previous sibling
 public File getPreviousFile() 
    Get the previous File, if any
 public int getSize() 
    find out the document size
 public int getStartBlock() 
 abstract public boolean isDirectory()
 public static boolean isSmall(int length) 
    does the length indicate a small document?
 static boolean isValidIndex(int index) 
    determine whether the specified index is valid
 abstract protected  void preWrite()
    Perform whatever activities need to be performed prior to writing
 protected  void setChildProperty(int child) 
    Set the child property.
 protected  void setIndex(int index) 
    Set the index for this Property
 protected final  void setName(String name) 
    Set the name; silently truncates the name if it's too long.
 public  void setNextFile(File file) 
    Set the next File
 protected  void setNodeColor(byte nodeColor) 
    Set the node color.
 public  void setPreviousFile(File file) 
    Set the previous File
 protected  void setPropertyType(byte propertyType) 
    Set the property type. Makes no attempt to validate the value.
 protected  void setSize(int size) 
    Set the size of the document associated with this Property
 public  void setStartBlock(int startBlock) 
    Set the start block for the document referred to by this Property.
 public boolean shouldUseSmallBlocks() 
    Based on the currently defined size, should this property use small blocks?
 public  void writeData(OutputStream stream) throws IOException 
    Write the raw data to an OutputStream.