Serializable
, Comparable<StandardIo>
public enum StandardIo extends Enum<StandardIo>
Program
.Enum Constant | Description |
---|---|
CONSOLE |
The console.
|
ERROR |
The standard error stream.
|
INPUT |
The standard input stream.
|
OUTPUT |
The standard output stream.
|
Modifier and Type | Method | Description |
---|---|---|
static StandardIo |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static StandardIo[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardIo INPUT
public static final StandardIo OUTPUT
public static final StandardIo ERROR
public static final StandardIo CONSOLE
public static StandardIo[] values()
for (StandardIo c : StandardIo.values()) System.out.println(c);
public static StandardIo valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null