Java Doc for Property.java in  » Collaboration » poi-3.0.2-beta2 » org » apache » poi » poifs » property » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » poi 3.0.2 beta2 » org.apache.poi.poifs.property 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.poi.poifs.property.Property

All known Subclasses:   org.apache.poi.poifs.storage.LocalProperty,  org.apache.poi.poifs.property.LocalProperty,  org.apache.poi.poifs.property.DocumentProperty,  org.apache.poi.poifs.property.DirectoryProperty,
Property
abstract public class Property implements Child,POIFSViewable(Code)
This abstract base class is the ancestor of all classes implementing POIFS Property behavior.
author:
   Marc Johnson (mjohnson at apache dot org)


Field Summary
final protected static  byte_NODE_BLACK
    
final protected static  byte_NODE_RED
    
final protected static  int_NO_INDEX
    

Constructor Summary
protected  Property()
    
protected  Property(int index, byte[] array, int offset)
    

Method Summary
protected  intgetChildIndex()
    
protected  intgetIndex()
    
public  StringgetName()
    
public  ChildgetNextChild()
    
 intgetNextChildIndex()
    
public  ChildgetPreviousChild()
    
 intgetPreviousChildIndex()
    
public  StringgetShortDescription()
     Provides a short description of the object, to be used when a POIFSViewable object has not provided its contents.
public  intgetSize()
    
public  intgetStartBlock()
    
public  ClassIDgetStorageClsid()
    
public  Object[]getViewableArray()
    
public  IteratorgetViewableIterator()
    
abstract public  booleanisDirectory()
    
public static  booleanisSmall(int length)
    
static  booleanisValidIndex(int index)
    
abstract protected  voidpreWrite()
    
public  booleanpreferArray()
    
protected  voidsetChildProperty(int child)
     Set the child property.
protected  voidsetIndex(int index)
    
final protected  voidsetName(String name)
     Set the name; silently truncates the name if it's too long.
public  voidsetNextChild(Child child)
    
protected  voidsetNodeColor(byte nodeColor)
     Set the node color.
public  voidsetPreviousChild(Child child)
    
protected  voidsetPropertyType(byte propertyType)
     Set the property type.
protected  voidsetSize(int size)
    
public  voidsetStartBlock(int startBlock)
     Set the start block for the document referred to by this Property.
public  voidsetStorageClsid(ClassID clsidStorage)
     Sets the storage class ID for this property stream.
public  booleanshouldUseSmallBlocks()
    
public  voidwriteData(OutputStream stream)
     Write the raw data to an OutputStream.

Field Detail
_NODE_BLACK
final protected static byte _NODE_BLACK(Code)



_NODE_RED
final protected static byte _NODE_RED(Code)



_NO_INDEX
final protected static int _NO_INDEX(Code)




Constructor Detail
Property
protected Property()(Code)
Default constructor



Property
protected Property(int index, byte[] array, int offset)(Code)
Constructor from byte data
Parameters:
  index - index number
Parameters:
  array - byte data
Parameters:
  offset - offset into byte data




Method Detail
getChildIndex
protected int getChildIndex()(Code)
Get the child property (its index in the Property Table) child property index



getIndex
protected int getIndex()(Code)
get the index for this Property the index of this Property within its Property Table



getName
public String getName()(Code)
Get the name of this property property name as String



getNextChild
public Child getNextChild()(Code)
Get the next Child, if any the next Child; may return null



getNextChildIndex
int getNextChildIndex()(Code)
get the next sibling index of next sibling



getPreviousChild
public Child getPreviousChild()(Code)
Get the previous Child, if any the previous Child; may return null



getPreviousChildIndex
int getPreviousChildIndex()(Code)
get the previous sibling index of previous sibling



getShortDescription
public String getShortDescription()(Code)
Provides a short description of the object, to be used when a POIFSViewable object has not provided its contents. short description



getSize
public int getSize()(Code)
find out the document size size in bytes



getStartBlock
public int getStartBlock()(Code)
the start block



getStorageClsid
public ClassID getStorageClsid()(Code)
Sets the storage clsid, which is the Class ID of a COM object which reads and writes this stream storage Class ID for this property stream



getViewableArray
public Object[] getViewableArray()(Code)
Get an array of objects, some of which may implement POIFSViewable an array of Object; may not be null, but may be empty



getViewableIterator
public Iterator getViewableIterator()(Code)
Get an Iterator of objects, some of which may implement POIFSViewable an Iterator; may not be null, but may have an emptyback end store



isDirectory
abstract public boolean isDirectory()(Code)
true if a directory type Property



isSmall
public static boolean isSmall(int length)(Code)
does the length indicate a small document?
Parameters:
  length - length in bytes true if the length is less than_big_block_minimum_bytes



isValidIndex
static boolean isValidIndex(int index)(Code)
determine whether the specified index is valid
Parameters:
  index - value to be checked true if the index is valid



preWrite
abstract protected void preWrite()(Code)
Perform whatever activities need to be performed prior to writing



preferArray
public boolean preferArray()(Code)
Give viewers a hint as to whether to call getViewableArray or getViewableIterator true if a viewer should call getViewableArray, false ifa viewer should call getViewableIterator



setChildProperty
protected void setChildProperty(int child)(Code)
Set the child property.
Parameters:
  child - the child property's index in the Property Table



setIndex
protected void setIndex(int index)(Code)
Set the index for this Property
Parameters:
  index - this Property's index within its containingProperty Table



setName
final protected void setName(String name)(Code)
Set the name; silently truncates the name if it's too long.
Parameters:
  name - the new name



setNextChild
public void setNextChild(Child child)(Code)
Set the next Child
Parameters:
  child - the new 'next' child; may be null, which has theeffect of saying there is no 'next' child



setNodeColor
protected void setNodeColor(byte nodeColor)(Code)
Set the node color.
Parameters:
  nodeColor - the node color (red or black)



setPreviousChild
public void setPreviousChild(Child child)(Code)
Set the previous Child
Parameters:
  child - the new 'previous' child; may be null, which hasthe effect of saying there is no 'previous' child



setPropertyType
protected void setPropertyType(byte propertyType)(Code)
Set the property type. Makes no attempt to validate the value.
Parameters:
  propertyType - the property type (root, file, directory)



setSize
protected void setSize(int size)(Code)
Set the size of the document associated with this Property
Parameters:
  size - the size of the document, in bytes



setStartBlock
public void setStartBlock(int startBlock)(Code)
Set the start block for the document referred to by this Property.
Parameters:
  startBlock - the start block index



setStorageClsid
public void setStorageClsid(ClassID clsidStorage)(Code)
Sets the storage class ID for this property stream. This is the Class ID of the COM object which can read and write this property stream
Parameters:
  clsidStorage - Storage Class ID



shouldUseSmallBlocks
public boolean shouldUseSmallBlocks()(Code)
Based on the currently defined size, should this property use small blocks? true if the size is less than _big_block_minimum_bytes



writeData
public void writeData(OutputStream stream) throws IOException(Code)
Write the raw data to an OutputStream.
Parameters:
  stream - the OutputStream to which the data should bewritten.
exception:
  IOException - on problems writing to the specifiedstream.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.