public enum DataTerminator extends java.lang.Enum<DataTerminator>
| Modifier and Type | Method and Description |
|---|---|
static DataTerminator |
fromValue(int value)
Gets a data terminator from its byte value.
|
byte |
getCode()
Gets the byte value of the data terminator.
|
static java.lang.String[] |
names()
Returns an array containing the names of the data terminator constants.
|
java.lang.String |
toString()
Returns the string message of the data terminator.
|
byte |
value()
Gets the byte value of the data terminator.
|
static DataTerminator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataTerminator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataTerminator none
public static final DataTerminator cr
public static final DataTerminator lf
public static final DataTerminator crlf
public static final DataTerminator tab
public static DataTerminator[] values()
for (DataTerminator c : DataTerminator.values()) System.out.println(c);
public static DataTerminator valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte value()
public byte getCode()
public java.lang.String toString()
toString in class java.lang.Enum<DataTerminator>public static DataTerminator fromValue(int value) throws java.lang.IllegalArgumentException
value - The byte value of the data terminator.java.lang.IllegalArgumentException - If the byte value does not correspond to any data terminator.public static java.lang.String[] names()