Class DConRefRecord

  • public class DConRefRecord
    extends StandardRecord
    DConRef records specify a range in a workbook (internal or external) that serves as a data source for pivot tables or data consolidation. Represents a 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      |
    • 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

      • If it exists, the length of DConRef.un = 2. Otherwise it is 1.
      • The length of 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.
    At the moment this class is read-only.
    • Field Detail

    • Constructor Detail

      • DConRefRecord

        public DConRefRecord​(byte[] data)
        Read constructor.
        data - byte array containing a DConRef Record, including the header.
      • DConRefRecord

        public DConRefRecord​(RecordInputStream inStream)
        Read Constructor.
        inStream - RecordInputStream containing a DConRefRecord structure.
    • Method Detail

      • getSid

        public short getSid()
        Description copied from class: Record
        return the non static version of the id for this record.
        Specified by:
        getSid in class Record
        he id for this record
      • getFirstColumn

        public int getFirstColumn()
        The first column of the range.
      • getFirstRow

        public int getFirstRow()
        The first row of the range.
      • getLastColumn

        public int getLastColumn()
        The last column of the range.
      • getLastRow

        public int getLastRow()
        The last row of the range.
      • toString

        public String toString()
        Description copied from class: Record
        get a string representation of the record (for biffview/debugging)
        toString in class Record
      • getPath

        public byte[] getPath()
        raw path byte array.
      • getReadablePath

        public String getReadablePath()
        the link's path, with the special characters stripped/replaced. May be null. See MS-XLS 2.5.277 (VirtualPath)
      • isExternalRef

        public boolean isExternalRef()
        Checks if the data source in this reference record is external to this sheet or internal.
        true iff this is an external reference.