Class TXT


public class TXT extends Data
A TXT record. Actually a binary blob containing extents, each of which is a one-byte count followed by that many bytes of data, which can usually be interpreted as ASCII strings but not always.
  • Constructor Details

    • TXT

      public TXT(byte[] blob)
  • Method Details

    • parse

      public static TXT parse(DataInputStream dis, int length) throws IOException
      Throws:
      IOException
    • getBlob

      public byte[] getBlob()
    • getText

      public String getText()
    • getCharacterStrings

      public List<String> getCharacterStrings()
    • getExtents

      public List<byte[]> getExtents()
    • serialize

      public void serialize(DataOutputStream dos) throws IOException
      Description copied from class: Data
      The internal method used to serialize Data subclasses.
      Specified by:
      serialize in class Data
      Parameters:
      dos - the output stream to serialize to.
      Throws:
      IOException - if an I/O error occurs.
    • getType

      public Record.TYPE getType()
      Description copied from class: Data
      The payload type.
      Specified by:
      getType in class Data
      Returns:
      The payload type.
    • toString

      public String toString()
      Overrides:
      toString in class Object