Class CString

  • All Implemented Interfaces:
    GenericRecord

    public final class CString
    extends RecordAtom
    A CString (type 4026). Holds a unicode string, and the first two bytes of the record header normally encode the count. Typically attached to some complex sequence of records, eg Comments.
    • Constructor Detail

      • CString

        protected CString​(byte[] source,
                          int start,
                          int len)
        For the CStrubg Atom
      • CString

        public CString()
        Create an empty CString
    • Method Detail

      • getText

        public String getText()
        Grabs the text. Never null
      • setText

        public void setText​(String text)
        Updates the text in the Atom.
      • getOptions

        public int getOptions()
        Grabs the count, from the first two bytes of the header. The meaning of the count is specific to the type of the parent record
      • setOptions

        public void setOptions​(int count)
        Sets the count The meaning of the count is specific to the type of the parent record
      • getRecordType

        public long getRecordType()
        We are of type 4026
        Specified by:
        getRecordType in class Record
      • toString

        public String toString()
        Gets a string representation of this object, primarily for debugging.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this object.