APIdia Launch Partner
Top Description Constructors Methods
jdk.internal.joptsimple.util

public Class InetAddressConverter

extends Object
implements ValueConverter<InetAddress>
Class Inheritance
All Implemented Interfaces
jdk.internal.joptsimple.ValueConverter
Imports
java.net.InetAddress, .UnknownHostException, java.util.Locale, jdk.internal.joptsimple.ValueConversionException, .ValueConverter, jdk.internal.joptsimple.internal.Messages

Converts values to java.net.InetAddress using getByName.
Author
Raymund Fülöp

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public InetAddress
convert(String value)

Implements jdk.internal.joptsimple.ValueConverter.convert.

Converts the given string value into a Java type.

private String
message(String value)

public String
valuePattern()

Implements jdk.internal.joptsimple.ValueConverter.valuePattern.

Gives a string that describes the pattern of the values this converter expects, if any.

public Class<InetAddress>
valueType()

Implements jdk.internal.joptsimple.ValueConverter.valueType.

Gives the class of the type of values this converter converts to.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InetAddressConverterback to summary
public InetAddressConverter()

Method Detail

convertback to summary
public InetAddress convert(String value)

Implements jdk.internal.joptsimple.ValueConverter.convert.

Doc from jdk.internal.joptsimple.ValueConverter.convert.

Converts the given string value into a Java type.

messageback to summary
private String message(String value)
valuePatternback to summary
public String valuePattern()

Implements jdk.internal.joptsimple.ValueConverter.valuePattern.

Doc from jdk.internal.joptsimple.ValueConverter.valuePattern.

Gives a string that describes the pattern of the values this converter expects, if any. For example, a date converter can respond with a date format string.

valueTypeback to summary
public Class<InetAddress> valueType()

Implements jdk.internal.joptsimple.ValueConverter.valueType.

Doc from jdk.internal.joptsimple.ValueConverter.valueType.

Gives the class of the type of values this converter converts to.