Class TextCharsAtom


  • public final class TextCharsAtom
    extends RecordAtom
    A TextCharsAtom (type 4000). Holds text in byte swapped unicode form. The trailing return character is always stripped from this
    • Field Detail

      • _type

        public static final long _type
    • Constructor Detail

      • TextCharsAtom

        public TextCharsAtom()
        Create an empty TextCharsAtom
    • Method Detail

      • getText

        public java.lang.String getText()
        Grabs the text.
      • setText

        public void setText​(java.lang.String text)
        Updates the text in the Atom.
      • getRecordType

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

        public void writeOut​(java.io.OutputStream out)
                      throws java.io.IOException
        Write the contents of the record back, so it can be written to disk
        Specified by:
        writeOut in class Record
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        dump debug info; use getText() to return a string representation of the atom
        Overrides:
        toString in class java.lang.Object