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

public Class PathConverter

extends Object
implements ValueConverter<Path>
Class Inheritance
All Implemented Interfaces
jdk.internal.joptsimple.ValueConverter
Imports
java.nio.file.Path, .Paths, java.text.MessageFormat, java.util.ResourceBundle, jdk.internal.joptsimple.ValueConversionException, .ValueConverter

Converts command line options to Path objects and checks the status of the underlying file.

Field Summary

Modifier and TypeField and Description
private final PathProperties[]

Constructor Summary

AccessConstructor and Description
public
PathConverter(PathProperties... pathProperties)

Method Summary

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

Implements jdk.internal.joptsimple.ValueConverter.convert.

Converts the given string value into a Java type.

private String
message(String errorKey, 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<Path>
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

Field Detail

pathPropertiesback to summary
private final PathProperties[] pathProperties

Constructor Detail

PathConverterback to summary
public PathConverter(PathProperties... pathProperties)

Method Detail

convertback to summary
public Path 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.

Annotations
@Override
messageback to summary
private String message(String errorKey, 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.

Annotations
@Override
valueTypeback to summary
public Class<Path> 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.

Annotations
@Override