Class TelnetOption


  • public class TelnetOption
    extends java.lang.Object
    The TelnetOption class cannot be instantiated and only serves as a storehouse for telnet option constants.

    Details regarding Telnet option specification can be found in RFC 855.

    See Also:
    Telnet, TelnetClient
    • Constructor Detail

      • TelnetOption

        private TelnetOption()
        Cannot be instantiated.
    • Method Detail

      • getOption

        public static final java.lang.String getOption​(int code)
        Returns the string representation of the telnet protocol option corresponding to the given option code.
        Parameters:
        code - The option code of the telnet protocol option
        Returns:
        The string representation of the telnet protocol option.
      • isValidOption

        public static final boolean isValidOption​(int code)
        Determines if a given option code is valid. Returns true if valid, false if not.
        Parameters:
        code - The option code to test.
        Returns:
        True if the option code is valid, false if not.