Class Hostname


  • public class Hostname
    extends Object
    Represents a hostname for serialization purposes. Only the character set and length will be validated. The character set consists of ASCII alphanumeric characters, hyphens, and periods. Its length is guaranteed to be representable by a single byte. This serialization is used by BOLT 7 hostnames.
    • Method Detail

      • clone

        public Hostname clone()
        Creates a copy of the Hostname
        Overrides:
        clone in class Object
      • len

        public byte len()
        Returns the length of the hostname.