This is often called a XLUnicodeRichExtendedString in MS documentation.
| Modifier and Type | Field and Description |
|---|---|
| private static final BitField | |
| private short | |
| private byte | |
| private String | |
| private List | |
| private ExtRst | |
| private static final BitField | |
| private static final Logger | |
| private static final BitField |
| Access | Constructor and Description |
|---|---|
| private | |
| public | |
| public | UnicodeString(RecordInputStream
the RecordInputStream to read the record from in)construct a unicode string record and fill its fields, ID is ignored |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public int | compareTo(UnicodeString
the object to be compared. str)Implements java. Compares this object with the specified object for order. |
| public UnicodeString | |
| public boolean | Returns: true if the object is actually equal.The object to compare. o)Overrides java. Our handling of equals is inconsistent with compareTo. |
| private int | |
| public Iterator | |
| public Spliterator | |
| public int | Returns: number of charactersget the number of characters in the string, as an un-wrapped int |
| public short | Returns: number of charactersget the number of characters in the string, wrapped as needed to fit within a short |
| public String | Returns: String of output for biffviewer etc.return a character representation of the fields of this record |
| public ExtRst | |
| public FormatRun | |
| public int | |
| public Map | |
| public byte | Returns: optionflags bitmaskget the option flags which among other things return if this is a 16-bit or 8 bit string |
| public String | |
| public int | |
| private boolean | |
| private boolean | |
| public void | |
| public void | |
| public void | |
| pack-priv void | |
| public void | setOptionFlags(byte
optionflags bitmask of)set the option flags which among other things return if this is a 16-bit or 8 bit string |
| public void | |
| public void | swapFontUse(short oldFontIndex, short newFontIndex)
Swaps all use in the string of one font index for use of a different font index. |
| public String | Returns: String value of the recordOverrides java. unlike the real records we return the same as "getString()" rather than debug info |
| extBit | back to summary |
|---|---|
| private static final BitField extBit | |
| field_1_charCount | back to summary |
|---|---|
| private short field_1_charCount | |
| field_2_optionflags | back to summary |
|---|---|
| private byte field_2_optionflags | |
| field_3_string | back to summary |
|---|---|
| private String field_3_string | |
| field_4_format_runs | back to summary |
|---|---|
| private List<FormatRun> field_4_format_runs | |
| field_5_ext_rst | back to summary |
|---|---|
| private ExtRst field_5_ext_rst | |
| highByte | back to summary |
|---|---|
| private static final BitField highByte | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| richText | back to summary |
|---|---|
| private static final BitField richText | |
| UnicodeString | back to summary |
|---|---|
| private UnicodeString(UnicodeString other) | |
| UnicodeString | back to summary |
|---|---|
| public UnicodeString(String str) | |
| UnicodeString | back to summary |
|---|---|
| public UnicodeString(RecordInputStream in) construct a unicode string record and fill its fields, ID is ignored
| |
| addFormatRun | back to summary |
|---|---|
| public void addFormatRun(FormatRun r) Adds a font run to the formatted string. If a font run exists at the current charcter location, then it is replaced with the font run to be added. | |
| clearFormatting | back to summary |
|---|---|
| public void clearFormatting() | |
| compareTo | back to summary |
|---|---|
| public int compareTo(UnicodeString str) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| copy | back to summary |
|---|---|
| public UnicodeString copy() Implements org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Our handling of equals is inconsistent with compareTo. The trouble is because we don't truly understand rich text fields, yet it's difficult to make a sound comparison.
| |
| findFormatRunAt | back to summary |
|---|---|
| private int findFormatRunAt(int characterPos) | |
| formatIterator | back to summary |
|---|---|
| public Iterator | |
| formatSpliterator | back to summary |
|---|---|
public Spliterator
| |
| getCharCount | back to summary |
|---|---|
| public int getCharCount() get the number of characters in the string, as an un-wrapped int
| |
| getCharCountShort | back to summary |
|---|---|
| public short getCharCountShort() get the number of characters in the string, wrapped as needed to fit within a short
| |
| getDebugInfo | back to summary |
|---|---|
| public String getDebugInfo() return a character representation of the fields of this record
| |
| getExtendedRst | back to summary |
|---|---|
| public ExtRst getExtendedRst() | |
| getFormatRun | back to summary |
|---|---|
| public FormatRun getFormatRun(int index) | |
| getFormatRunCount | back to summary |
|---|---|
| public int getFormatRunCount() | |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getOptionFlags | back to summary |
|---|---|
| public byte getOptionFlags() get the option flags which among other things return if this is a 16-bit or 8 bit string
| |
| getString | back to summary |
|---|---|
public String getString()
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isExtendedText | back to summary |
|---|---|
| private boolean isExtendedText() | |
| isRichText | back to summary |
|---|---|
| private boolean isRichText() | |
| removeFormatRun | back to summary |
|---|---|
| public void removeFormatRun(FormatRun r) | |
| serialize | back to summary |
|---|---|
| public void serialize(ContinuableRecordOutput out) Serialises out the String. There are special rules about where we can and can't split onto Continue records. | |
| setCharCount | back to summary |
|---|---|
| public void setCharCount(short cc) set the number of characters in the string
| |
| setExtendedRst | back to summary |
|---|---|
| pack-priv void setExtendedRst(ExtRst ext_rst) | |
| setOptionFlags | back to summary |
|---|---|
| public void setOptionFlags(byte of) set the option flags which among other things return if this is a 16-bit or 8 bit string
| |
| setString | back to summary |
|---|---|
| public void setString(String string) set the actual string this contains
| |
| swapFontUse | back to summary |
|---|---|
| public void swapFontUse(short oldFontIndex, short newFontIndex) Swaps all use in the string of one font index for use of a different font index. Normally only called when fonts have been removed / re-ordered | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. unlike the real records we return the same as "getString()" rather than debug info
| |