public static enum Bytestream.Mode extends Enum<Bytestream.Mode>
Enum Constant and Description |
---|
tcp
A TCP based stream.
|
udp
A UDP based stream.
|
Modifier and Type | Method and Description |
---|---|
static Bytestream.Mode |
fromName(String name) |
static Bytestream.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Bytestream.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bytestream.Mode tcp
public static final Bytestream.Mode udp
public static Bytestream.Mode[] values()
for (Bytestream.Mode c : Bytestream.Mode.values()) System.out.println(c);
public static Bytestream.Mode 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 nullpublic static Bytestream.Mode fromName(String name)