| Modifier and Type | Field and Description |
|---|---|
| private short | |
| private short | |
| private static final BitField | |
| private static final BitField |
| Access | Constructor and Description |
|---|---|
| public | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract EscherRecord | |
| public void | display(PrintWriter
The print writer to output to. w, int The current indent level. indent)The display methods allows escher variables to print the record names according to their hierarchy. |
| protected int | Returns: The number of bytes written.they bytes to serialize from data, EscherRecordFactory the escher record factory f)Delegates to fillFields(byte[], int, EscherRecordFactory) |
| public abstract int | Returns: The number of bytes written.The byte array containing the serialized escher
records. data, int The offset into the byte array. offset, EscherRecordFactory A factory for creating new escher records. recordFactory)The contract of this method is to deserialize an escher record including its children. |
| public EscherRecord | Returns: the indexed child recordthe index of the child within the child records index)Returns the indexed child record. |
| public List | Returns: Returns the children of this record. By default this will be an empty list. EscherCotainerRecord is the only record that may contain children.
|
| public List | getGenericChildren()
Overrides default org.
|
| public Map | |
| public short | Returns: The instance part of the recordReturns the instance part of the option record. |
| public short | Returns: The options field for this record. All records have one.Note that |
| public short | |
| public abstract String | Returns: the short name for this escher recordSubclasses should return the short name for this escher record. |
| public abstract int | Returns: number of bytesSubclasses should effeciently return the number of bytes required to serialize the record. |
| public short | Returns: The version part of the option recordReturns the version part of the option record. |
| public boolean | Returns: true is this is a container field.Determine whether this is a container record by inspecting the option field. |
| protected int | Returns: the number of bytes remaining in this record. This may include the children if this is a container.the byte array to read from data, int the offset to start reading from offset)Reads the 8 byte header information and populates the |
| protected static short | Returns: value of instance part of options fieldthe byte array to read from data, int the offset to start reading from offset)Read the options field from header and return instance part of it. |
| public byte[] | |
| public int | Returns: The number of bytes written.the offset within the data byte array. offset, byte[] the data array to serialize to. data)Serializes to an existing byte array without serialization listener. |
| public abstract int | Returns: the number of bytes written.the offset within the byte array offset, byte[] the data array to serialize to data, EscherSerializationListener a listener for begin and end serialization events. This
is useful because the serialization is
hierarchical/recursive and sometimes you need to be able
break into that. listener)Serializes the record to an existing byte array. |
| public void | setChildRecords(List<EscherRecord>
Not used in base implementation. childRecords)Sets the child records for this record. |
| public void | |
| public void | |
| public void | |
| public void | |
| public final String | |
| public String | |
| public final String |
| _options | back to summary |
|---|---|
| private short _options | |
| _recordId | back to summary |
|---|---|
| private short _recordId | |
| fInstance | back to summary |
|---|---|
| private static final BitField fInstance | |
| fVersion | back to summary |
|---|---|
| private static final BitField fVersion | |
| EscherRecord | back to summary |
|---|---|
| public EscherRecord() Create a new instance | |
| EscherRecord | back to summary |
|---|---|
| protected EscherRecord(EscherRecord other) | |
| copy | back to summary |
|---|---|
| public abstract EscherRecord copy() Redeclares org.
| |
| display | back to summary |
|---|---|
| public void display(PrintWriter w, int indent) The display methods allows escher variables to print the record names according to their hierarchy.
| |
| fillFields | back to summary |
|---|---|
| protected int fillFields(byte[] data, EscherRecordFactory f) Delegates to fillFields(byte[], int, EscherRecordFactory)
| |
| fillFields | back to summary |
|---|---|
| public abstract int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) The contract of this method is to deserialize an escher record including its children.
| |
| getChild | back to summary |
|---|---|
| public EscherRecord getChild(int index) Returns the indexed child record.
| |
| getChildRecords | back to summary |
|---|---|
public List
| |
| getGenericChildren | back to summary |
|---|---|
| public List Overrides default org.
| |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getInstance | back to summary |
|---|---|
| public short getInstance() Returns the instance part of the option record.
| |
| getOptions | back to summary |
|---|---|
| public short getOptions() Note that
| |
| getRecordId | back to summary |
|---|---|
| public short getRecordId() Return the current record id.
| |
| getRecordName | back to summary |
|---|---|
| public abstract String getRecordName() Subclasses should return the short name for this escher record.
| |
| getRecordSize | back to summary |
|---|---|
| public abstract int getRecordSize() Subclasses should effeciently return the number of bytes required to serialize the record.
| |
| getVersion | back to summary |
|---|---|
| public short getVersion() Returns the version part of the option record.
| |
| isContainerRecord | back to summary |
|---|---|
| public boolean isContainerRecord() Determine whether this is a container record by inspecting the option field.
| |
| readHeader | back to summary |
|---|---|
| protected int readHeader(byte[] data, int offset) Reads the 8 byte header information and populates the
| |
| readInstance | back to summary |
|---|---|
| protected static short readInstance(byte[] data, int offset) Read the options field from header and return instance part of it.
| |
| serialize | back to summary |
|---|---|
| public byte[] serialize() Serializes to a new byte array. This is done by delegating to serialize(int, byte[]);
| |
| serialize | back to summary |
|---|---|
| public int serialize(int offset, byte[] data) Serializes to an existing byte array without serialization listener. This is done by delegating to serialize(int, byte[], EscherSerializationListener).
| |
| serialize | back to summary |
|---|---|
| public abstract int serialize(int offset, byte[] data, EscherSerializationListener listener) Serializes the record to an existing byte array.
| |
| setChildRecords | back to summary |
|---|---|
| public void setChildRecords(List<EscherRecord> childRecords) Sets the child records for this record. By default this will throw an exception as only EscherContainerRecords may have children.
| |
| setInstance | back to summary |
|---|---|
| public void setInstance(short value) Sets the instance part of record
| |
| setOptions | back to summary |
|---|---|
| public void setOptions(short options) Set the options this record. Container records should have the last nibble set to 0xF.
Note that
| |
| setRecordId | back to summary |
|---|---|
| public void setRecordId(short recordId) Sets the record id for this record.
| |
| setVersion | back to summary |
|---|---|
| public void setVersion(short value) Sets the version part of record
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| toXml | back to summary |
|---|---|
| public String toXml() | |
| toXml | back to summary |
|---|---|
| public final String toXml(String tab) | |