| Enum Constant and Description |
|---|
CLOSE
Close operator.
|
CONNECT
Connect operator.
|
DISCONNECT
Disconnect operator.
|
EOF
End-of-file operator; intentionally has same code as EOF (-1) returned by Java's InputStream.read() method.
|
ERROR
Error operator.
|
GET_LENGTH
Get-length operator.
|
INFO
File info request operator.
|
LIST
Directory listing operator.
|
MAKE_DIRECTORY
Make directory operator.
|
NOK
Non-confirmation operator.
|
OK
Confirmation operator.
|
OPEN
Open operator.
|
READ
Read operator.
|
READ_COMPRESSED
Compressed read operator.
|
REMOVE
Remove operator.
|
SET_LENGTH
Set-length operator.
|
WRITE
Write operator.
|
WRITE_COMPRESSED
Write operator.
|
| Modifier and Type | Method and Description |
|---|---|
static YonderOp |
forCode(int code) |
static YonderOp |
forName(java.lang.String name) |
int |
getCode()
Single-byte code used during transfer.
|
java.lang.String |
getName()
Human-readable name for the op.
|
java.lang.String |
toString() |
static YonderOp |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static YonderOp[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YonderOp EOF
public static final YonderOp ERROR
public static final YonderOp OK
public static final YonderOp NOK
public static final YonderOp CONNECT
public static final YonderOp DISCONNECT
public static final YonderOp INFO
public static final YonderOp LIST
public static final YonderOp OPEN
public static final YonderOp CLOSE
public static final YonderOp READ
public static final YonderOp WRITE
public static final YonderOp READ_COMPRESSED
public static final YonderOp WRITE_COMPRESSED
public static final YonderOp GET_LENGTH
public static final YonderOp SET_LENGTH
public static final YonderOp MAKE_DIRECTORY
public static final YonderOp REMOVE
public static YonderOp[] values()
for (YonderOp c : YonderOp.values()) System.out.println(c);
public static YonderOp 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 static YonderOp forName(java.lang.String name)
public static YonderOp forCode(int code)
public java.lang.String toString()
toString in class java.lang.Enum<YonderOp>public java.lang.String getName()
public int getCode()