Package com.hierynomus.mssmb2
Enum Class SMB2CreateDisposition
- All Implemented Interfaces:
EnumWithValue<SMB2CreateDisposition>
,Serializable
,Comparable<SMB2CreateDisposition>
,Constable
public enum SMB2CreateDisposition
extends Enum<SMB2CreateDisposition>
implements EnumWithValue<SMB2CreateDisposition>
[MS-SMB2].pdf 2.2.13 SMB2 CREATE Request - CreateDisposition
Defines the action the server MUST take if the file that is specified in the name field already exists. For opening named pipes, this field may be set to any value by the client and MUST be ignored by the server. For other files, 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 ConstantDescriptionIf the file already exists, fail the operation; otherwise, create the file.If the file already exists, return success; otherwise, fail the operation.Open the file if it already exists; otherwise, create the file.Overwrite the file if it already exists; otherwise, fail the operation.Overwrite the file if it already exists; otherwise, create the file.If the file already exists, supersede it. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getValue()
static SMB2CreateDisposition
Returns the enum constant of this class with the specified name.static SMB2CreateDisposition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FILE_SUPERSEDE
If the file already exists, supersede it. Otherwise, create the file. This value SHOULD NOT be used for a printer object. -
FILE_OPEN
If the file already exists, return success; otherwise, fail the operation. MUST NOT be used for a printer object. -
FILE_CREATE
If the file already exists, fail the operation; otherwise, create the file. -
FILE_OPEN_IF
Open the file if it already exists; otherwise, create the file. This value SHOULD NOT be used for a printer object. -
FILE_OVERWRITE
Overwrite the file if it already exists; otherwise, fail the operation. MUST NOT be used for a printer object. -
FILE_OVERWRITE_IF
Overwrite the file if it already exists; otherwise, create the file. This value SHOULD NOT be used for a printer object.
-
-
Field Details
-
value
private long value
-
-
Constructor Details
-
SMB2CreateDisposition
private SMB2CreateDisposition(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<SMB2CreateDisposition>
-