Class TXT

  • All Implemented Interfaces:
    Data

    public class TXT
    extends java.lang.Object
    implements Data
    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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected byte[] blob  
    • Constructor Summary

      Constructors 
      Constructor Description
      TXT()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBlob()  
      java.util.List<byte[]> getExtents()  
      java.lang.String getText()  
      Record.TYPE getType()
      The payload type.
      void parse​(java.io.DataInputStream dis, byte[] data, int length)
      Parse this payload.
      void setBlob​(byte[] blob)  
      void setText​(java.lang.String text)  
      byte[] toByteArray()
      Binary representation of this payload.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • blob

        protected byte[] blob
    • Constructor Detail

      • TXT

        public TXT()
    • Method Detail

      • getBlob

        public byte[] getBlob()
      • setBlob

        public void setBlob​(byte[] blob)
      • getText

        public java.lang.String getText()
      • getExtents

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

        public void setText​(java.lang.String text)
      • toByteArray

        public byte[] toByteArray()
        Description copied from interface: Data
        Binary representation of this payload.
        Specified by:
        toByteArray in interface Data
        Returns:
        The binary representation of this payload.
      • parse

        public void parse​(java.io.DataInputStream dis,
                          byte[] data,
                          int length)
                   throws java.io.IOException
        Description copied from interface: Data
        Parse this payload.
        Specified by:
        parse in interface Data
        Parameters:
        dis - The input stream.
        data - The plain data (needed for name cross references).
        length - The payload length.
        Throws:
        java.io.IOException - on io error (read past paket boundary).
      • getType

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

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