The obj record is used to hold various graphic objects and controls.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | _isPaddedToQuadByteMultiple
Excel seems to tolerate padding to quad or double byte length |
| private final byte[] | _uninterpretedData
used when POI has no idea what is going on |
| private static int | |
| private static final int | |
| public static final short | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| private static boolean | canPaddingBeDiscarded(byte[] data, int nRemainingBytes)
Some XLS files have ObjRecords with nearly 8Kb of excessive padding. |
| public void | |
| public ObjRecord | copy()
Implements abstract org. Implements org.
|
| public List | getGenericChildren()
Overrides default org.
|
| public Map | |
| public HSSFRecordTypes | getGenericRecordType()
Overrides default org. Implements abstract org.
|
| public int | getRecordSize()
Implements abstract org. gives the current serialized size of the record. |
| public short | getSid()
Implements abstract org. return the non static version of the id for this record. |
| public List | |
| public int | serialize(int
to begin writing at offset, byte[] byte array containing instance data data)Implements abstract org. called by the class that is responsible for writing this sucker. |
| _isPaddedToQuadByteMultiple | back to summary |
|---|---|
| private boolean _isPaddedToQuadByteMultiple Excel seems to tolerate padding to quad or double byte length | |
| _uninterpretedData | back to summary |
|---|---|
| private final byte[] _uninterpretedData used when POI has no idea what is going on | |
| MAX_PAD_ALIGNMENT | back to summary |
|---|---|
| private static int MAX_PAD_ALIGNMENT | |
| NORMAL_PAD_ALIGNMENT | back to summary |
|---|---|
| private static final int NORMAL_PAD_ALIGNMENT | |
| sid | back to summary |
|---|---|
| public static final short sid | |
| subrecords | back to summary |
|---|---|
| private final List<SubRecord> subrecords | |
| ObjRecord | back to summary |
|---|---|
| public ObjRecord() | |
| ObjRecord | back to summary |
|---|---|
| public ObjRecord(ObjRecord other) | |
| ObjRecord | back to summary |
|---|---|
| public ObjRecord(RecordInputStream in) | |
| addSubRecord | back to summary |
|---|---|
| public void addSubRecord(int index, SubRecord element) | |
| addSubRecord | back to summary |
|---|---|
| public boolean addSubRecord(SubRecord o) | |
| canPaddingBeDiscarded | back to summary |
|---|---|
| private static boolean canPaddingBeDiscarded(byte[] data, int nRemainingBytes) Some XLS files have ObjRecords with nearly 8Kb of excessive padding. These were probably written by a version of POI (around 3.1) which incorrectly interpreted the second short of the ftLbs subrecord (0x1FEE) as a length, and read that many bytes as padding (other bugs helped allow this to occur). Excel reads files with this excessive padding OK, truncating the over-sized ObjRecord back to the its proper size. POI does the same. | |
| clearSubRecords | back to summary |
|---|---|
| public void clearSubRecords() | |
| copy | back to summary |
|---|---|
| public ObjRecord copy() Implements abstract org. Implements org.
| |
| getGenericChildren | back to summary |
|---|---|
| public List Overrides default org.
| |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getGenericRecordType | back to summary |
|---|---|
| public HSSFRecordTypes getGenericRecordType() Overrides default org. Implements abstract org.
| |
| getRecordSize | back to summary |
|---|---|
| public int getRecordSize() Implements abstract org. Doc from org. gives the current serialized size of the record. Should include the sid and reclength (4 bytes).
| |
| getSid | back to summary |
|---|---|
| public short getSid() Implements abstract org. Doc from org. return the non static version of the id for this record.
| |
| getSubRecords | back to summary |
|---|---|
| public List | |
| serialize | back to summary |
|---|---|
| public int serialize(int offset, byte[] data) Implements abstract org. Doc from org. called by the class that is responsible for writing this sucker. Subclasses should implement this so that their data is passed back in a byte array.
| |