Package net.schmizz.sshj.sftp
Enum PacketType
- java.lang.Object
-
- java.lang.Enum<PacketType>
-
- net.schmizz.sshj.sftp.PacketType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PacketType>
public enum PacketType extends java.lang.Enum<PacketType>
-
-
Field Summary
Fields Modifier and Type Field Description private byte
b
private static PacketType[]
cache
-
Constructor Summary
Constructors Modifier Constructor Description private
PacketType(int b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PacketType
fromByte(byte b)
byte
toByte()
static PacketType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PacketType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final PacketType UNKNOWN
-
INIT
public static final PacketType INIT
-
VERSION
public static final PacketType VERSION
-
OPEN
public static final PacketType OPEN
-
CLOSE
public static final PacketType CLOSE
-
READ
public static final PacketType READ
-
WRITE
public static final PacketType WRITE
-
LSTAT
public static final PacketType LSTAT
-
FSTAT
public static final PacketType FSTAT
-
SETSTAT
public static final PacketType SETSTAT
-
FSETSTAT
public static final PacketType FSETSTAT
-
OPENDIR
public static final PacketType OPENDIR
-
READDIR
public static final PacketType READDIR
-
REMOVE
public static final PacketType REMOVE
-
MKDIR
public static final PacketType MKDIR
-
RMDIR
public static final PacketType RMDIR
-
REALPATH
public static final PacketType REALPATH
-
STAT
public static final PacketType STAT
-
RENAME
public static final PacketType RENAME
-
READLINK
public static final PacketType READLINK
-
SYMLINK
public static final PacketType SYMLINK
-
STATUS
public static final PacketType STATUS
-
HANDLE
public static final PacketType HANDLE
-
DATA
public static final PacketType DATA
-
NAME
public static final PacketType NAME
-
ATTRS
public static final PacketType ATTRS
-
EXTENDED
public static final PacketType EXTENDED
-
EXTENDED_REPLY
public static final PacketType EXTENDED_REPLY
-
-
Field Detail
-
b
private final byte b
-
cache
private static final PacketType[] cache
-
-
Method Detail
-
values
public static PacketType[] 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 (PacketType c : PacketType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PacketType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromByte
public static PacketType fromByte(byte b)
-
toByte
public byte toByte()
-
-