Class InetAddressOptionHandler

    • Constructor Detail

      • InetAddressOptionHandler

        public InetAddressOptionHandler​(CmdLineParser parser,
                                        OptionDef option,
                                        Setter<? super java.net.InetAddress> setter)
    • Method Detail

      • parse

        protected java.net.InetAddress parse​(java.lang.String argument)
                                      throws CmdLineException
        Description copied from class: OneArgumentOptionHandler
        Parses a string to a real value of Type <T>.
        Specified by:
        parse in class OneArgumentOptionHandler<java.net.InetAddress>
        Parameters:
        argument - String value to parse
        Returns:
        the parsed value
        Throws:
        CmdLineException - if the parsing encounters a failure that should be reported to the user.
      • getDefaultMetaVariable

        public java.lang.String getDefaultMetaVariable()
        Description copied from class: OptionHandler
        Gets the default meta variable name used to print the usage screen. The value returned by this method can be a reference in the ResourceBundle, if one was passed to CmdLineParser.
        Overrides:
        getDefaultMetaVariable in class OneArgumentOptionHandler<java.net.InetAddress>
        Returns:
        null to hide a meta variable.