public static enum PtpIpPacket.Type extends java.lang.Enum<PtpIpPacket.Type> implements Code<UINT32>
Enum Constant and Description |
---|
CANCEL |
DATA |
END_DATA |
EVENT |
INIT_COMMAND_ACK |
INIT_COMMAND_REQUEST |
INIT_EVENT_ACK |
INIT_EVENT_REQUEST |
INIT_FAIL |
OPERATION_REQUEST |
OPERATION_RESPONSE |
PROBE_REQUEST |
PROBE_RESPONSE |
START_DATA |
Modifier and Type | Field and Description |
---|---|
static int |
SIZE_IN_BYTES |
Modifier and Type | Method and Description |
---|---|
static PtpIpPacket.Type |
read(PtpInputStream pis) |
UINT32 |
value() |
static PtpIpPacket.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PtpIpPacket.Type |
valueOf(UINT32 value) |
static PtpIpPacket.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PtpIpPacket.Type INIT_COMMAND_REQUEST
public static final PtpIpPacket.Type INIT_COMMAND_ACK
public static final PtpIpPacket.Type INIT_EVENT_REQUEST
public static final PtpIpPacket.Type INIT_EVENT_ACK
public static final PtpIpPacket.Type INIT_FAIL
public static final PtpIpPacket.Type OPERATION_REQUEST
public static final PtpIpPacket.Type OPERATION_RESPONSE
public static final PtpIpPacket.Type EVENT
public static final PtpIpPacket.Type START_DATA
public static final PtpIpPacket.Type DATA
public static final PtpIpPacket.Type CANCEL
public static final PtpIpPacket.Type END_DATA
public static final PtpIpPacket.Type PROBE_REQUEST
public static final PtpIpPacket.Type PROBE_RESPONSE
public static final int SIZE_IN_BYTES
public static PtpIpPacket.Type[] values()
for (PtpIpPacket.Type c : PtpIpPacket.Type.values()) System.out.println(c);
public static PtpIpPacket.Type 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 PtpIpPacket.Type valueOf(UINT32 value)
public static PtpIpPacket.Type read(PtpInputStream pis) throws java.io.IOException
java.io.IOException