Class TextHeaderAtom

All Implemented Interfaces:
ParentAwareRecord

public final class TextHeaderAtom extends RecordAtom implements ParentAwareRecord
A TextHeaderAtom (type 3999). Holds information on what kind of text is contained in the TextBytesAtom / TextCharsAtom that follows straight after
  • Field Details

  • Constructor Details

    • TextHeaderAtom

      protected TextHeaderAtom(byte[] source, int start, int len)
      For the TextHeader Atom
    • TextHeaderAtom

      public TextHeaderAtom()
      Create a new TextHeader Atom, for an unknown type of text
  • Method Details

    • getTextType

      public int getTextType()
    • setTextType

      public void setTextType(int type)
    • getIndex

      public int getIndex()
      Returns:
      0-based index of the text run in the SLWT container
    • setIndex

      public void setIndex(int index)
      Parameters:
      index - 0-based index of the text run in the SLWT container
    • getParentRecord

      public RecordContainer getParentRecord()
      Specified by:
      getParentRecord in interface ParentAwareRecord
    • setParentRecord

      public void setParentRecord(RecordContainer record)
      Specified by:
      setParentRecord in interface ParentAwareRecord
    • getRecordType

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

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