|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Operation>
tecgraf.ftc_1_2.common.logic.Operation
public enum Operation
Representa uma operação que pode ser realizada num RemoteFileChannel.
| Enum Constant Summary | |
|---|---|
CLOSE
Operação de fechamento de um arquivo. |
|
GET_POSITION
Operação de obtenção da posição atual do arquivo. |
|
GET_SIZE
Operação de obtenção do tamanho do arquivo. |
|
KEEP_ALIVE
Operação para manter a conexao ativa. |
|
OPEN_READ_ONLY
Operação de abertura de um arquivo somente para leitura. |
|
OPEN_READ_WRITE
Operação de abertura de um arquivo para leitura e para gravação. |
|
READ
Operação para leitura de dados. |
|
SET_POSITION
Operação para definir a nova posição do arquivo. |
|
SET_SIZE
Operação para truncar o arquivo para um novo tamanho. |
|
WRITE
Operação para escrita de dados. |
|
| Method Summary | |
|---|---|
byte |
getCode()
Obtém o código da operação. |
static Operation |
valueOf(byte code)
Obtém uma operação a partir de seu código. |
static Operation |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Operation[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Operation OPEN_READ_ONLY
public static final Operation OPEN_READ_WRITE
public static final Operation CLOSE
public static final Operation SET_SIZE
public static final Operation GET_POSITION
public static final Operation SET_POSITION
public static final Operation GET_SIZE
public static final Operation READ
public static final Operation WRITE
public static final Operation KEEP_ALIVE
| Method Detail |
|---|
public static Operation[] values()
for (Operation c : Operation.values()) System.out.println(c);
public static Operation valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic byte getCode()
public static Operation valueOf(byte code)
code - O código.
null, caso o código não corresponda a
nenhuma operação.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||