HyperlinkRecord (0x01B8) wraps an HLINK-record
from the Excel-97 format.
Supports only external links for now (eg http://)
| Modifier and Type | Field and Description |
|---|---|
| private String | _address
Link |
| private int | _fileOpts
Some sort of options for file links. |
| private ClassID | _guid
16-byte GUID |
| private String | _label
Test label |
| private int | _linkOpts
Link options. |
| private ClassID | _moniker
Moniker. |
| private CellRangeAddress | _range
cell range of this hyperlink |
| private String | _shortFilename
in 8:3 DOS format No Unicode string header, always 8-bit characters, zero-terminated |
| private String | |
| private String | _textMark
Text describing a place in document. |
| private byte[] | |
| private static final byte[] | FILE_TAIL
expected Tail of a file link |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | HLINK_PLACE
Place in worksheet. |
| private static final int | |
| private static final int | |
| pack-priv static final int | |
| private static final Logger | |
| public static final short | |
| private static final int | |
| private static final byte[] | URL_TAIL
expected Tail of a URL link |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private static String | |
| public HyperlinkRecord | copy()
Implements abstract org. Implements org.
|
| public String | |
| protected int | |
| public int | |
| public int | |
| public int | |
| public Map | |
| public HSSFRecordTypes | getGenericRecordType()
Overrides default org. Implements abstract org.
|
| pack-priv ClassID | |
| public String | |
| public int | |
| public int | |
| public int | |
| pack-priv int | |
| pack-priv ClassID | |
| public String | |
| public short | getSid()
Implements abstract org. return the non static version of the id for this record. |
| public String | |
| public String | |
| public boolean | Returns: true, if this is a docment linkBased on the link options, is this a document? |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| private static byte[] | |
| public void | serialize(LittleEndianOutput
the output object out)Implements abstract org. Write the data content of this BIFF record. |
| public void | |
| public void | setFirstColumn(int
the first column (zero-based) firstCol)Set the first column (zero-based) of the range that contains this hyperlink |
| public void | setFirstRow(int
the first row (zero-based) firstRow)Set the first row (zero-based) of the range that contains this hyperlink |
| public void | |
| public void | setLastColumn(int
the last column (zero-based) lastCol)Set the last column (zero-based) of the range that contains this hyperlink |
| public void | setLastRow(int
the last row (zero-based) lastRow)Set the last row (zero-based) of the range that contains this hyperlink |
| public void | |
| public void | |
| private static void |
| _address | back to summary |
|---|---|
| private String _address Link | |
| _fileOpts | back to summary |
|---|---|
| private int _fileOpts Some sort of options for file links. | |
| _guid | back to summary |
|---|---|
| private ClassID _guid 16-byte GUID | |
| _label | back to summary |
|---|---|
| private String _label Test label | |
| _linkOpts | back to summary |
|---|---|
| private int _linkOpts Link options. Can include any of HLINK_* flags. | |
| _moniker | back to summary |
|---|---|
| private ClassID _moniker Moniker. Makes sense only for URL and file links | |
| _range | back to summary |
|---|---|
| private CellRangeAddress _range cell range of this hyperlink | |
| _shortFilename | back to summary |
|---|---|
| private String _shortFilename in 8:3 DOS format No Unicode string header, always 8-bit characters, zero-terminated | |
| _targetFrame | back to summary |
|---|---|
| private String _targetFrame | |
| _textMark | back to summary |
|---|---|
| private String _textMark Text describing a place in document. In Excel UI, this is appended to the
address, (after a '#' delimiter). | |
| _uninterpretedTail | back to summary |
|---|---|
| private byte[] _uninterpretedTail | |
| FILE_TAIL | back to summary |
|---|---|
| private static final byte[] FILE_TAIL expected Tail of a file link | |
| HLINK_ABS | back to summary |
|---|---|
| pack-priv static final int HLINK_ABS | |
| HLINK_LABEL | back to summary |
|---|---|
| pack-priv static final int HLINK_LABEL | |
| HLINK_PLACE | back to summary |
|---|---|
| pack-priv static final int HLINK_PLACE Place in worksheet. If set, the | |
| HLINK_TARGET_FRAME | back to summary |
|---|---|
| private static final int HLINK_TARGET_FRAME | |
| HLINK_UNC_PATH | back to summary |
|---|---|
| private static final int HLINK_UNC_PATH | |
| HLINK_URL | back to summary |
|---|---|
| pack-priv static final int HLINK_URL | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| sid | back to summary |
|---|---|
| public static final short sid | |
| TAIL_SIZE | back to summary |
|---|---|
| private static final int TAIL_SIZE | |
| URL_TAIL | back to summary |
|---|---|
| private static final byte[] URL_TAIL expected Tail of a URL link | |
| HyperlinkRecord | back to summary |
|---|---|
| public HyperlinkRecord() Create a new hyperlink | |
| HyperlinkRecord | back to summary |
|---|---|
| public HyperlinkRecord(HyperlinkRecord other) | |
| HyperlinkRecord | back to summary |
|---|---|
| public HyperlinkRecord(RecordInputStream in) | |
| appendNullTerm | back to summary |
|---|---|
| private static String appendNullTerm(String s) | |
| cleanString | back to summary |
|---|---|
| private static String cleanString(String s) | |
| copy | back to summary |
|---|---|
| public HyperlinkRecord copy() Implements abstract org. Implements org.
| |
| getAddress | back to summary |
|---|---|
| public String getAddress() Hyperlink address. Depending on the hyperlink type it can be URL, e-mail, path to a file, etc.
| |
| getDataSize | back to summary |
|---|---|
| protected int getDataSize() Implements abstract org.
| |
| getFileOptions | back to summary |
|---|---|
public int getFileOptions()
| |
| 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.
| |
| getGuid | back to summary |
|---|---|
pack-priv ClassID getGuid()
| |
| getLabel | back to summary |
|---|---|
| public String getLabel() Return text label for this hyperlink
| |
| getLabelOptions | back to summary |
|---|---|
public int getLabelOptions()
| |
| getLastColumn | back to summary |
|---|---|
public int getLastColumn()
| |
| getLastRow | back to summary |
|---|---|
public int getLastRow()
| |
| getLinkOptions | back to summary |
|---|---|
| pack-priv int getLinkOptions() Link options. Must be a combination of HLINK_* constants. For testing only
| |
| getMoniker | back to summary |
|---|---|
pack-priv ClassID getMoniker()
| |
| getShortFilename | back to summary |
|---|---|
| public String getShortFilename() | |
| getSid | back to summary |
|---|---|
| public short getSid() Implements abstract org. Doc from org. return the non static version of the id for this record.
| |
| getTargetFrame | back to summary |
|---|---|
| public String getTargetFrame() | |
| getTextMark | back to summary |
|---|---|
| public String getTextMark() | |
| isDocumentLink | back to summary |
|---|---|
| public boolean isDocumentLink() Based on the link options, is this a document?
| |
| isFileLink | back to summary |
|---|---|
| public boolean isFileLink() Based on the link options, is this a file?
| |
| isUrlLink | back to summary |
|---|---|
| public boolean isUrlLink() Based on the link options, is this a url?
| |
| newDocumentLink | back to summary |
|---|---|
| public void newDocumentLink() Initialize a new document link | |
| newFileLink | back to summary |
|---|---|
| public void newFileLink() Initialize a new file link | |
| newUrlLink | back to summary |
|---|---|
| public void newUrlLink() Initialize a new url link | |
| readTail | back to summary |
|---|---|
| private static byte[] readTail(byte[] expectedTail, LittleEndianInput in) | |
| serialize | back to summary |
|---|---|
| public 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
| |
| setAddress | back to summary |
|---|---|
| public void setAddress(String address) Hyperlink address. Depending on the hyperlink type it can be URL, e-mail, path to a file, etc.
| |
| setFirstColumn | back to summary |
|---|---|
| public void setFirstColumn(int firstCol) Set the first column (zero-based) of the range that contains this hyperlink
| |
| setFirstRow | back to summary |
|---|---|
| public void setFirstRow(int firstRow) Set the first row (zero-based) of the range that contains this hyperlink
| |
| setLabel | back to summary |
|---|---|
| public void setLabel(String label) Sets text label for this hyperlink
| |
| setLastColumn | back to summary |
|---|---|
| public void setLastColumn(int lastCol) Set the last column (zero-based) of the range that contains this hyperlink
| |
| setLastRow | back to summary |
|---|---|
| public void setLastRow(int lastRow) Set the last row (zero-based) of the range that contains this hyperlink
| |
| setShortFilename | back to summary |
|---|---|
| public void setShortFilename(String shortFilename) | |
| setTextMark | back to summary |
|---|---|
| public void setTextMark(String textMark) | |
| writeTail | back to summary |
|---|---|
| private static void writeTail(byte[] tail, LittleEndianOutput out) | |