Package org.apache.poi.hslf.record
Class HSLFEscherClientDataRecord
- java.lang.Object
-
- org.apache.poi.ddf.EscherRecord
-
- org.apache.poi.ddf.EscherClientDataRecord
-
- org.apache.poi.hslf.record.HSLFEscherClientDataRecord
-
- All Implemented Interfaces:
java.lang.Cloneable
public class HSLFEscherClientDataRecord extends EscherClientDataRecord
An atom record that specifies whether a shape is a placeholder shape. The number, position, and type of placeholder shapes are determined by the slide layout as specified in the SlideAtom record.- Since:
- POI 3.14-Beta2
-
-
Field Summary
-
Fields inherited from class org.apache.poi.ddf.EscherClientDataRecord
RECORD_DESCRIPTION, RECORD_ID
-
-
Constructor Summary
Constructors Constructor Description HSLFEscherClientDataRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(Record childRecord)intfillFields(byte[] data, int offset, EscherRecordFactory recordFactory)The contract of this method is to deserialize an escher record including it's children.java.util.List<? extends Record>getHSLFChildRecords()java.lang.StringgetRecordName()Subclasses should return the short name for this escher record.intgetRecordSize()Subclasses should effeciently return the number of bytes required to serialize the record.byte[]getRemainingData()Any data recording this record.voidremoveChild(java.lang.Class<? extends Record> childClass)intserialize(int offset, byte[] data, EscherSerializationListener listener)Serializes the record to an existing byte array.voidsetRemainingData(byte[] remainingData)Any data recording this record.-
Methods inherited from class org.apache.poi.ddf.EscherClientDataRecord
getRecordId
-
Methods inherited from class org.apache.poi.ddf.EscherRecord
clone, display, getChild, getChildRecords, getInstance, getOptions, getVersion, isContainerRecord, serialize, serialize, setChildRecords, setInstance, setOptions, setRecordId, setVersion, toString, toXml, toXml
-
-
-
-
Method Detail
-
getHSLFChildRecords
public java.util.List<? extends Record> getHSLFChildRecords()
-
removeChild
public void removeChild(java.lang.Class<? extends Record> childClass)
-
addChild
public void addChild(Record childRecord)
-
fillFields
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory)Description copied from class:EscherRecordThe contract of this method is to deserialize an escher record including it's children.- Overrides:
fillFieldsin classEscherClientDataRecord- Parameters:
data- The byte array containing the serialized escher records.offset- The offset into the byte array.recordFactory- A factory for creating new escher records.- Returns:
- The number of bytes written.
-
serialize
public int serialize(int offset, byte[] data, EscherSerializationListener listener)Description copied from class:EscherRecordSerializes the record to an existing byte array.- Overrides:
serializein classEscherClientDataRecord- Parameters:
offset- the offset within the byte arraydata- the data array to serialize tolistener- 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.- Returns:
- the number of bytes written.
-
getRecordSize
public int getRecordSize()
Description copied from class:EscherRecordSubclasses should effeciently return the number of bytes required to serialize the record.- Overrides:
getRecordSizein classEscherClientDataRecord- Returns:
- number of bytes
-
getRemainingData
public byte[] getRemainingData()
Description copied from class:EscherClientDataRecordAny data recording this record.- Overrides:
getRemainingDatain classEscherClientDataRecord- Returns:
- the remaining bytes
-
setRemainingData
public void setRemainingData(byte[] remainingData)
Description copied from class:EscherClientDataRecordAny data recording this record.- Overrides:
setRemainingDatain classEscherClientDataRecord- Parameters:
remainingData- the remaining bytes
-
getRecordName
public java.lang.String getRecordName()
Description copied from class:EscherRecordSubclasses should return the short name for this escher record.- Overrides:
getRecordNamein classEscherClientDataRecord- Returns:
- the short name for this escher record
-
-