public enum SMB2CreateDisposition extends java.lang.Enum<SMB2CreateDisposition> implements EnumWithValue<SMB2CreateDisposition>
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.
EnumWithValue.EnumUtils| Enum Constant and Description |
|---|
FILE_CREATE
If the file already exists, fail the operation; otherwise, create the file.
|
FILE_OPEN
If the file already exists, return success; otherwise, fail the operation.
|
FILE_OPEN_IF
Open the file if it already exists; otherwise, create the file.
|
FILE_OVERWRITE
Overwrite the file if it already exists; otherwise, fail the operation.
|
FILE_OVERWRITE_IF
Overwrite the file if it already exists; otherwise, create the file.
|
FILE_SUPERSEDE
If the file already exists, supersede it.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getValue() |
static SMB2CreateDisposition |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SMB2CreateDisposition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SMB2CreateDisposition FILE_SUPERSEDE
public static final SMB2CreateDisposition FILE_OPEN
public static final SMB2CreateDisposition FILE_CREATE
public static final SMB2CreateDisposition FILE_OPEN_IF
public static final SMB2CreateDisposition FILE_OVERWRITE
public static final SMB2CreateDisposition FILE_OVERWRITE_IF
public static SMB2CreateDisposition[] values()
for (SMB2CreateDisposition c : SMB2CreateDisposition.values()) System.out.println(c);
public static SMB2CreateDisposition 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 long getValue()
getValue in interface EnumWithValue<SMB2CreateDisposition>