Package com.hierynomus.mssmb2
Enum Class SMB2CreateAction
- All Implemented Interfaces:
EnumWithValue<SMB2CreateAction>
,Serializable
,Comparable<SMB2CreateAction>
,Constable
public enum SMB2CreateAction
extends Enum<SMB2CreateAction>
implements EnumWithValue<SMB2CreateAction>
[MS-SMB2].pdf 2.2.14 SMB2 CREATE Response- CreateAction
The action taken in establishing the open. This field MUST contain one of the following values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.hierynomus.protocol.commons.EnumWithValue
EnumWithValue.EnumUtils
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA new file was created.An existing file was opened.An existing file was overwrittenAn existing file was deleted and a new file was created in its place. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getValue()
static SMB2CreateAction
Returns the enum constant of this class with the specified name.static SMB2CreateAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FILE_SUPERSEDED
An existing file was deleted and a new file was created in its place. -
FILE_OPENED
An existing file was opened. -
FILE_CREATED
A new file was created. -
FILE_OVERWRITTEN
An existing file was overwritten
-
-
Field Details
-
value
private long value
-
-
Constructor Details
-
SMB2CreateAction
private SMB2CreateAction(long value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public long getValue()- Specified by:
getValue
in interfaceEnumWithValue<SMB2CreateAction>
-