Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. Extraneous whitespace characters are not permitted.
Syntax
public static InputInfo.StreamDir valueOf(java.lang.String name)
Syntax Elements
- name
- the name of the enum constant to be returned.
Exceptions
valueOf throws the following exceptions:
- java.lang.IllegalArgumentException - if this enum type has no constant with the specified name.
- java.lang.NullPointerException - if the argument is null.