Class TextBytesAtom


  • public final class TextBytesAtom
    extends RecordAtom
    A TextBytesAtom (type 4008). Holds text in ascii form (unknown code page, for now assumed to be the default of org.apache.poi.util.StringUtil, which is the Excel default). The trailing return character is always stripped from this
    • Field Detail

      • _type

        public static final long _type
    • Constructor Detail

      • TextBytesAtom

        public TextBytesAtom()
        Create an empty TextBytes Atom
    • Method Detail

      • getText

        public String getText()
        Grabs the text. Uses the default codepage
      • setText

        public void setText​(byte[] b)
        Updates the text in the Atom. Must be 8 bit ascii
      • getRecordType

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

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