public enum PostDataDelimiter extends java.lang.Enum<PostDataDelimiter>
Enum Constant and Description |
---|
CARRIAGE
Carriage (0x0D) delimeter
|
CARRIAGE_LINE
Carriage + line feed (0x0D + 0x0A) delimeters
|
LINE
Line feed (0x0A) delimeter
|
NONE
Don't add delimeter.
|
Modifier and Type | Method and Description |
---|---|
static PostDataDelimiter |
getPostDataDelimiter(byte value) |
byte |
getValue() |
static PostDataDelimiter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PostDataDelimiter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PostDataDelimiter NONE
public static final PostDataDelimiter CARRIAGE
public static final PostDataDelimiter LINE
public static final PostDataDelimiter CARRIAGE_LINE
public static PostDataDelimiter[] values()
for (PostDataDelimiter c : PostDataDelimiter.values()) System.out.println(c);
public static PostDataDelimiter 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 getValue()
public static PostDataDelimiter getPostDataDelimiter(byte value)