public enum ControlCharacterFilter extends Enum<ControlCharacterFilter>
| Enum Constant and Description |
|---|
noSend |
partialSend |
send |
| Modifier and Type | Method and Description |
|---|---|
static ControlCharacterFilter |
fromValue(int value)
Gets a control character filter from its byte value.
|
byte |
getCode()
Gets the byte value of the control character filter.
|
static String[] |
names()
Returns an array containing the names of the control character filter constants.
|
String |
toString()
Returns the string message of the control character filter.
|
static ControlCharacterFilter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ControlCharacterFilter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControlCharacterFilter noSend
public static final ControlCharacterFilter send
public static final ControlCharacterFilter partialSend
public static ControlCharacterFilter[] values()
for (ControlCharacterFilter c : ControlCharacterFilter.values()) System.out.println(c);
public static ControlCharacterFilter 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 byte getCode()
public String toString()
toString in class Enum<ControlCharacterFilter>public static ControlCharacterFilter fromValue(int value) throws IllegalArgumentException
value - The byte value of the control character filter.IllegalArgumentException - If the byte value does not correspond to any control character filter.public static String[] names()