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 Detail

      • TXT

        public TXT​(byte[] blob)
    • Method Detail

      • parse

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

        public byte[] getBlob()
      • getText

        public java.lang.String getText()
      • getExtents

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

        public void serialize​(java.io.DataOutputStream dos)
                       throws java.io.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:
        java.io.IOException - if an I/O error occurs.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object