public class DConRefRecord extends StandardRecord
DConRef Structure
[MS-XLS s.
2.4.86], and the contained DConFile structure
[MS-XLS s. 2.5.69]. This in turn contains a XLUnicodeStringNoCch
[MS-XLS s. 2.5.296].
_______________________________
| DConRef |
(bytes) +-+-+-+-+-+-+-+-+-+-+...+-+-+-+-+
| ref |cch| stFile | un|
+-+-+-+-+-+-+-+-+-+-+...+-+-+-+-+
|
_________|_____________________
|DConFile / XLUnicodeStringNoCch|
+-+-+-+-+-+-+-+-+-+-+-+...+-+-+-+
(bits) |h| reserved | rgb |
+-+-+-+-+-+-+-+-+-+-+-+...+-+-+-+
Where
DConFile.h = 0x00 if the characters inrgb are single byte, and
DConFile.h = 0x01 if they are double byte.If they are double byte, then
DConRef.un = 2. Otherwise it is 1.
DConFile.rgb = (2 * DConRef.cch). Otherwise it is equal to
DConRef.cch.
DConRef.rgb starts with 0x01 if it is an external reference,
and with 0x02 if it is a self-reference.
| Modifier and Type | Field and Description |
|---|---|
static short |
sid
The id of the record type,
sid = 81 |
| Constructor and Description |
|---|
DConRefRecord(byte[] data)
Read constructor.
|
DConRefRecord(DConRefRecord other) |
DConRefRecord(RecordInputStream inStream)
Read Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DConRefRecord |
copy() |
protected int |
getDataSize() |
int |
getFirstColumn() |
int |
getFirstRow() |
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
HSSFRecordTypes |
getGenericRecordType() |
int |
getLastColumn() |
int |
getLastRow() |
byte[] |
getPath() |
java.lang.String |
getReadablePath() |
short |
getSid()
return the non static version of the id for this record.
|
boolean |
isExternalRef()
Checks if the data source in this reference record is external to this sheet or internal.
|
protected void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
getRecordSize, serializecloneViaReserialise, serialize, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericChildrenpublic static final short sid
sid = 81public DConRefRecord(DConRefRecord other)
public DConRefRecord(byte[] data)
data - byte array containing a DConRef Record, including the header.public DConRefRecord(RecordInputStream inStream)
inStream - RecordInputStream containing a DConRefRecord structure.protected int getDataSize()
getDataSize in class StandardRecordprotected void serialize(LittleEndianOutput out)
StandardRecord
The number of bytes written must equal the record size reported by
RecordBase.getRecordSize()} minus four (
record header consisting of a 'ushort sid' and 'ushort reclength' has
already been written by their superclass).
serialize in class StandardRecordout - the output objectpublic short getSid()
Recordpublic int getFirstColumn()
public int getFirstRow()
public int getLastColumn()
public int getLastRow()
public byte[] getPath()
public java.lang.String getReadablePath()
public boolean isExternalRef()
public DConRefRecord copy()
copy in interface Duplicatablecopy in class StandardRecordpublic HSSFRecordTypes getGenericRecordType()
getGenericRecordType in interface GenericRecordgetGenericRecordType in class Recordpublic java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.