| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private int | _remainingLength
in case if document contains any charts we have such document structure: BOF ... |
| public static final short | |
| public static final short | |
| public static final short | |
| private static final Logger | |
| private static final int | |
| public static final short | |
| public static final short | |
| public static final short |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addChildBefore(EscherRecord
the record to be added record, int the recordId of the next sibling insertBeforeRecordId)Add a child record before the record with given recordId |
| public void | |
| public EscherContainerRecord | copy()
Implements abstract org. Implements org.
|
| public void | display(PrintWriter
The print writer to output to. w, int The current indent level. indent)Overrides org. The display methods allows escher variables to print the record names according to their hierarchy. |
| public int | fillFields(byte[]
The byte array containing the serialized escher
records. data, int The offset into the byte array. pOffset, EscherRecordFactory A factory for creating new escher records. recordFactory)Implements abstract org. The contract of this method is to deserialize an escher record including its children. |
| pack-priv int | |
| public EscherRecord | getChild(int
the index of the child within the child records index)Overrides org. Returns the indexed child record. |
| public <T extends EscherRecord> T | |
| public List | Returns: EscherContainer childrenReturns all of our children which are also EscherContainers (may be 0, 1, or vary rarely 2 or 3) |
| public int | |
| public List | Returns: a copy of the list of all the child records of the container.Overrides org.
|
| public Map | |
| public Enum | |
| public String | getRecordName()
Implements abstract org. Subclasses should return the short name for this escher record. |
| public void | getRecordsById(short
the recordId to be searched for recordId, List<EscherRecord> - list to store found records out)Recursively find records with the specified record ID |
| public int | getRecordSize()
Implements abstract org. Subclasses should effeciently return the number of bytes required to serialize the record. |
| public boolean | Returns: true, if any child has the given recordIdthe recordId of the child recordId)Do any of our (top level) children have the given recordId? |
| public Iterator | Returns: an iterator over the child recordsImplements java. Returns an iterator over elements of type |
| public boolean | Returns: true, if the record was found and removedthe escher record to be removed toBeRemoved)Removes the given escher record from the child list |
| public int | serialize(int
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)Implements abstract org. Serializes the record to an existing byte array. |
| public void | setChildRecords(List<EscherRecord>
Not used in base implementation. childRecords)Overrides org. replaces the internal child list with the contents of the supplied |
| public Spliterator | Returns: a spliterator over the child recordsOverrides default java. Creates a |
| _childRecords | back to summary |
|---|---|
| private final List<EscherRecord> _childRecords | |
| _remainingLength | back to summary |
|---|---|
| private int _remainingLength in case if document contains any charts we have such document structure: BOF ... DrawingRecord ... ObjRecord|TxtObjRecord ... EOF ... BOF(Chart begin) ... DrawingRecord ... ObjRecord|TxtObjRecord ... EOF So, when we call EscherAggregate.createAggregate() we have not all needed data. When we got warning "WARNING: " + bytesRemaining + " bytes remaining but no space left" we should save value of bytesRemaining and add it to container size when we serialize it | |
| BSTORE_CONTAINER | back to summary |
|---|---|
| public static final short BSTORE_CONTAINER | |
| DG_CONTAINER | back to summary |
|---|---|
| public static final short DG_CONTAINER | |
| DGG_CONTAINER | back to summary |
|---|---|
| public static final short DGG_CONTAINER | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| MAX_NESTED_CHILD_NODES | back to summary |
|---|---|
| private static final int MAX_NESTED_CHILD_NODES | |
| SOLVER_CONTAINER | back to summary |
|---|---|
| public static final short SOLVER_CONTAINER | |
| SP_CONTAINER | back to summary |
|---|---|
| public static final short SP_CONTAINER | |
| SPGR_CONTAINER | back to summary |
|---|---|
| public static final short SPGR_CONTAINER | |
| EscherContainerRecord | back to summary |
|---|---|
| public EscherContainerRecord() | |
| EscherContainerRecord | back to summary |
|---|---|
| public EscherContainerRecord(EscherContainerRecord other) | |
| addChildBefore | back to summary |
|---|---|
| public void addChildBefore(EscherRecord record, int insertBeforeRecordId) Add a child record before the record with given recordId
| |
| addChildRecord | back to summary |
|---|---|
| public void addChildRecord(EscherRecord record) Append a child record
| |
| copy | back to summary |
|---|---|
| public EscherContainerRecord copy() Implements abstract org. Implements org.
| |
| display | back to summary |
|---|---|
| public void display(PrintWriter w, int indent) Overrides org. Doc from org. The display methods allows escher variables to print the record names according to their hierarchy.
| |
| fillFields | back to summary |
|---|---|
| public int fillFields(byte[] data, int pOffset, EscherRecordFactory recordFactory) Implements abstract org. Doc from org. The contract of this method is to deserialize an escher record including its children.
| |
| fillFields | back to summary |
|---|---|
| pack-priv int fillFields(byte[] data, int pOffset, EscherRecordFactory recordFactory, int nesting) | |
| getChild | back to summary |
|---|---|
| public EscherRecord getChild(int index) Overrides org. Doc from org. Returns the indexed child record.
| |
| getChildById | back to summary |
|---|---|
| public <T extends EscherRecord> T getChildById(short recordId) | |
| getChildContainers | back to summary |
|---|---|
| public List Returns all of our children which are also EscherContainers (may be 0, 1, or vary rarely 2 or 3)
| |
| getChildCount | back to summary |
|---|---|
| public int getChildCount() | |
| getChildRecords | back to summary |
|---|---|
| public List Overrides org.
| |
| getGenericProperties | back to summary |
|---|---|
| public Map Overrides org. Implements org.
| |
| getGenericRecordType | back to summary |
|---|---|
| public Enum Overrides default org.
| |
| getRecordName | back to summary |
|---|---|
| public String getRecordName() Implements abstract org. Doc from org. Subclasses should return the short name for this escher record. | |
| getRecordsById | back to summary |
|---|---|
| public void getRecordsById(short recordId, List<EscherRecord> out) Recursively find records with the specified record ID
| |
| getRecordSize | back to summary |
|---|---|
| public int getRecordSize() Implements abstract org. Doc from org. Subclasses should effeciently return the number of bytes required to serialize the record.
| |
| hasChildOfType | back to summary |
|---|---|
| public boolean hasChildOfType(short recordId) Do any of our (top level) children have the given recordId?
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| removeChildRecord | back to summary |
|---|---|
| public boolean removeChildRecord(EscherRecord toBeRemoved) Removes the given escher record from the child list
| |
| serialize | back to summary |
|---|---|
| public int serialize(int offset, byte[] data, EscherSerializationListener listener) Implements abstract org. Doc from org. Serializes the record to an existing byte array.
| |
| setChildRecords | back to summary |
|---|---|
| public void setChildRecords(List<EscherRecord> childRecords) Overrides org. replaces the internal child list with the contents of the supplied
| |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Doc from java. Creates a
| |