Package org.yamcs.cfdp.pdu
Enum FileDirectiveCode
- java.lang.Object
-
- java.lang.Enum<FileDirectiveCode>
-
- org.yamcs.cfdp.pdu.FileDirectiveCode
-
- All Implemented Interfaces:
Serializable
,Comparable<FileDirectiveCode>
public enum FileDirectiveCode extends Enum<FileDirectiveCode>
-
-
Field Summary
Fields Modifier and Type Field Description static Map<Byte,FileDirectiveCode>
Lookup
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
getCode()
static FileDirectiveCode
readFileDirectiveCode(byte b)
static FileDirectiveCode
readFileDirectiveCode(ByteBuffer buffer)
static FileDirectiveCode
readFileDirectiveCodeFromHalfAByte(byte b)
static FileDirectiveCode
valueOf(String name)
Returns the enum constant of this type with the specified name.static FileDirectiveCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESERVED
public static final FileDirectiveCode RESERVED
-
EOF
public static final FileDirectiveCode EOF
-
FINISHED
public static final FileDirectiveCode FINISHED
-
ACK
public static final FileDirectiveCode ACK
-
METADATA
public static final FileDirectiveCode METADATA
-
NAK
public static final FileDirectiveCode NAK
-
PROMPT
public static final FileDirectiveCode PROMPT
-
KEEP_ALIVE
public static final FileDirectiveCode KEEP_ALIVE
-
-
Field Detail
-
Lookup
public static final Map<Byte,FileDirectiveCode> Lookup
-
-
Method Detail
-
values
public static FileDirectiveCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileDirectiveCode c : FileDirectiveCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileDirectiveCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public byte getCode()
-
readFileDirectiveCode
public static FileDirectiveCode readFileDirectiveCode(ByteBuffer buffer)
-
readFileDirectiveCode
public static FileDirectiveCode readFileDirectiveCode(byte b)
-
readFileDirectiveCodeFromHalfAByte
public static FileDirectiveCode readFileDirectiveCodeFromHalfAByte(byte b)
-
-