Java Doc for EscherRecord.java in  » Collaboration » poi-3.0.2-beta2 » org » apache » poi » ddf » 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.ddf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.poi.ddf.EscherRecord

All known Subclasses:   org.apache.poi.ddf.EscherBlipRecord,  org.apache.poi.ddf.EscherTextboxRecord,  org.apache.poi.ddf.EscherSpRecord,  org.apache.poi.ddf.EscherDggRecord,  org.apache.poi.ddf.EscherClientDataRecord,  org.apache.poi.ddf.EscherContainerRecord,  org.apache.poi.ddf.EscherSplitMenuColorsRecord,  org.apache.poi.ddf.EscherBSERecord,  org.apache.poi.ddf.EscherClientAnchorRecord,  org.apache.poi.ddf.EscherSpgrRecord,  org.apache.poi.ddf.EscherOptRecord,  org.apache.poi.ddf.EscherDgRecord,  org.apache.poi.ddf.UnknownEscherRecord,  org.apache.poi.ddf.EscherChildAnchorRecord,
EscherRecord
abstract public class EscherRecord (Code)
The base abstract record from which all escher records are defined. Subclasses will need to define methods for serialization/deserialization and for determining the record size.
author:
   Glen Stampoultzis

Inner Class :static class EscherRecordHeader


Constructor Summary
public  EscherRecord()
    

Method Summary
public  Objectclone()
     Escher records may need to be clonable in the future.
public  voiddisplay(PrintWriter w, int indent)
     The display methods allows escher variables to print the record names according to their hierarchy.
protected  intfillFields(byte[] data, EscherRecordFactory f)
    
abstract public  intfillFields(byte[] data, int offset, EscherRecordFactory recordFactory)
     The contract of this method is to deserialize an escher record including it's children.
Parameters:
  data - The byte array containing the serialized escherrecords.
Parameters:
  offset - The offset into the byte array.
Parameters:
  recordFactory - A factory for creating new escher records.
public  EscherRecordgetChild(int index)
     Returns the indexed child record.
public  ListgetChildRecords()
     Returns the children of this record.
public  shortgetInstance()
     Returns the instance part of the option record.
public  shortgetOptions()
     The options field for this record.
public  shortgetRecordId()
     Return the current record id.
abstract public  StringgetRecordName()
     Subclasses should return the short name for this escher record.
abstract public  intgetRecordSize()
     Subclasses should effeciently return the number of bytes required to serialize the record.
public  booleanisContainerRecord()
     Determine whether this is a container record by inspecting the option field.
protected  intreadHeader(byte[] data, int offset)
     Reads the 8 byte header information and populates the options and recordId records.
Parameters:
  data - the byte array to read from
Parameters:
  offset - the offset to start reading from the number of bytes remaining in this record.
public  byte[]serialize()
     Serializes to a new byte array.
public  intserialize(int offset, byte[] data)
     Serializes to an existing byte array without serialization listener. This is done by delegating to serialize(int, byte[], EscherSerializationListener).
Parameters:
  offset - the offset within the data byte array.
Parameters:
  data - the data array to serialize to.
abstract public  intserialize(int offset, byte[] data, EscherSerializationListener listener)
     Serializes the record to an existing byte array.
Parameters:
  offset - the offset within the byte array
Parameters:
  data - the data array to serialize to
Parameters:
  listener - a listener for begin and end serialization events.
public  voidsetChildRecords(List childRecords)
     Sets the child records for this record.
public  voidsetOptions(short options)
     Set the options this this record.
public  voidsetRecordId(short recordId)
     Sets the record id for this record.


Constructor Detail
EscherRecord
public EscherRecord()(Code)
Create a new instance




Method Detail
clone
public Object clone()(Code)
Escher records may need to be clonable in the future.



display
public void display(PrintWriter w, int indent)(Code)
The display methods allows escher variables to print the record names according to their hierarchy.
Parameters:
  w - The print writer to output to.
Parameters:
  indent - The current indent level.



fillFields
protected int fillFields(byte[] data, EscherRecordFactory f)(Code)
Delegates to fillFields(byte[], int, EscherRecordFactory)
See Also:   EscherRecord.fillFields(byte[],int,org.apache.poi.ddf.EscherRecordFactory)



fillFields
abstract public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory)(Code)
The contract of this method is to deserialize an escher record including it's children.
Parameters:
  data - The byte array containing the serialized escherrecords.
Parameters:
  offset - The offset into the byte array.
Parameters:
  recordFactory - A factory for creating new escher records. The number of bytes written.



getChild
public EscherRecord getChild(int index)(Code)
Returns the indexed child record.



getChildRecords
public List getChildRecords()(Code)
Returns the children of this record. By default this willbe an empty list. EscherCotainerRecord is the only recordthat may contain children.
See Also:   EscherContainerRecord



getInstance
public short getInstance()(Code)
Returns the instance part of the option record. The instance part of the record



getOptions
public short getOptions()(Code)
The options field for this record. All records have one.



getRecordId
public short getRecordId()(Code)
Return the current record id. The 16 bit record id.



getRecordName
abstract public String getRecordName()(Code)
Subclasses should return the short name for this escher record.



getRecordSize
abstract public int getRecordSize()(Code)
Subclasses should effeciently return the number of bytes required to serialize the record. number of bytes



isContainerRecord
public boolean isContainerRecord()(Code)
Determine whether this is a container record by inspecting the option field. true is this is a container field.



readHeader
protected int readHeader(byte[] data, int offset)(Code)
Reads the 8 byte header information and populates the options and recordId records.
Parameters:
  data - the byte array to read from
Parameters:
  offset - the offset to start reading from the number of bytes remaining in this record. Thismay include the children if this is a container.



serialize
public byte[] serialize()(Code)
Serializes to a new byte array. This is done by delegating to serialize(int, byte[]); the serialized record.
See Also:   EscherRecord.serialize(int,byte[])



serialize
public int serialize(int offset, byte[] data)(Code)
Serializes to an existing byte array without serialization listener. This is done by delegating to serialize(int, byte[], EscherSerializationListener).
Parameters:
  offset - the offset within the data byte array.
Parameters:
  data - the data array to serialize to. The number of bytes written.
See Also:   EscherRecord.serialize(int,byte[],org.apache.poi.ddf.EscherSerializationListener)



serialize
abstract public int serialize(int offset, byte[] data, EscherSerializationListener listener)(Code)
Serializes the record to an existing byte array.
Parameters:
  offset - the offset within the byte array
Parameters:
  data - the data array to serialize to
Parameters:
  listener - a listener for begin and end serialization events. Thisis useful because the serialization ishierarchical/recursive and sometimes you need to be ablebreak into that. the number of bytes written.



setChildRecords
public void setChildRecords(List childRecords)(Code)
Sets the child records for this record. By default this will throw an exception as only EscherContainerRecords may have children.
Parameters:
  childRecords - Not used in base implementation.



setOptions
public void setOptions(short options)(Code)
Set the options this this record. Container records should have the last nibble set to 0xF.



setRecordId
public void setRecordId(short recordId)(Code)
Sets the record id for this record.



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.