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 |
|---|---|
| private byte[] | _unused
unused bits at the end, must be set to 0. |
| private final int | charCount
the number of chars in the link |
| private final int | charType
the type of characters (single or double byte) |
| private final int | |
| private final int | firstRow
A RefU structure specifying the range of cells if this record is part of an SXTBL. |
| private final int | |
| private final int | |
| private final byte[] | path
The link's path string. |
| public static final short | sid
The id of the record type,
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | DConRefRecord(byte[]
byte array containing a DConRef Record, including the header. data)Read constructor. |
| public | DConRefRecord(RecordInputStream
RecordInputStream containing a DConRefRecord structure. inStream)Read Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private static RecordInputStream | |
| public DConRefRecord | copy()
Implements abstract org. Implements org.
|
| protected int | |
| public int | |
| public int | |
| public Map | |
| public HSSFRecordTypes | getGenericRecordType()
Overrides default org. Implements abstract org.
|
| public int | |
| public int | |
| public byte[] | |
| public String | Returns: the link's path, with the special characters stripped/replaced. May be null. See MS-XLS 2.5.277 (VirtualPath)
|
| public short | getSid()
Implements abstract org. return the non static version of the id for this record. |
| public boolean | Returns: true iff this is an external reference.Checks if the data source in this reference record is external to this sheet or internal. |
| protected void | serialize(LittleEndianOutput
the output object out)Implements abstract org. Write the data content of this BIFF record. |
| _unused | back to summary |
|---|---|
| private byte[] _unused unused bits at the end, must be set to 0. | |
| charCount | back to summary |
|---|---|
| private final int charCount the number of chars in the link | |
| charType | back to summary |
|---|---|
| private final int charType the type of characters (single or double byte) | |
| firstCol | back to summary |
|---|---|
| private final int firstCol | |
| firstRow | back to summary |
|---|---|
| private final int firstRow A RefU structure specifying the range of cells if this record is part of an SXTBL. [MS XLS s.2.5.211] | |
| lastCol | back to summary |
|---|---|
| private final int lastCol | |
| lastRow | back to summary |
|---|---|
| private final int lastRow | |
| path | back to summary |
|---|---|
| private final byte[] path The link's path string. This is the
| |
| sid | back to summary |
|---|---|
| public static final short sid The id of the record type,
| |
| DConRefRecord | back to summary |
|---|---|
| public DConRefRecord(DConRefRecord other) | |
| DConRefRecord | back to summary |
|---|---|
| public DConRefRecord(byte[] data) Read constructor.
| |
| DConRefRecord | back to summary |
|---|---|
| public DConRefRecord(RecordInputStream inStream) Read Constructor.
| |
| bytesToRIStream | back to summary |
|---|---|
| private static RecordInputStream bytesToRIStream(byte[] data) | |
| copy | back to summary |
|---|---|
| public DConRefRecord copy() Implements abstract org. Implements org.
| |
| getDataSize | back to summary |
|---|---|
| protected int getDataSize() Implements abstract org.
| |
| getFirstColumn | back to summary |
|---|---|
public int getFirstColumn()
| |
| getFirstRow | back to summary |
|---|---|
public int getFirstRow()
| |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getGenericRecordType | back to summary |
|---|---|
| public HSSFRecordTypes getGenericRecordType() Overrides default org. Implements abstract org.
| |
| getLastColumn | back to summary |
|---|---|
public int getLastColumn()
| |
| getLastRow | back to summary |
|---|---|
public int getLastRow()
| |
| getPath | back to summary |
|---|---|
public byte[] getPath()
| |
| getReadablePath | back to summary |
|---|---|
public String getReadablePath()
| |
| getSid | back to summary |
|---|---|
| public short getSid() Implements abstract org. Doc from org. return the non static version of the id for this record.
| |
| isExternalRef | back to summary |
|---|---|
| public boolean isExternalRef() Checks if the data source in this reference record is external to this sheet or internal.
| |
| serialize | back to summary |
|---|---|
| protected void serialize(LittleEndianOutput out) Implements abstract org. Doc from org. Write the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields have already been written by the superclass.
The number of bytes written must equal the record size reported by
| |