Class TelnetOption

java.lang.Object
org.apache.commons.net.telnet.TelnetOption

public class TelnetOption extends 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:
  • Field Details

  • Constructor Details

    • TelnetOption

      private TelnetOption()
  • Method Details

    • getOption

      public static final 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.