public final class FileAction extends Object
The file actions are sent in OpenAndX and NTCreateAndX request/response SMBs.
Modifier and Type | Field and Description |
---|---|
static int |
CreateNotExist |
static int |
FailIfExists |
static int |
FileCreated |
static int |
FileExisted |
static int |
FileTruncated |
static int |
NTCreate |
static int |
NTOpen |
static int |
NTOpenIf |
static int |
NTOverwrite |
static int |
NTOverwriteIf |
static int |
NTSupersede |
static int |
OpenIfExists |
static int |
TruncateExisting |
Constructor and Description |
---|
FileAction() |
Modifier and Type | Method and Description |
---|---|
static String |
asString(int flags)
Convert the file exists action flags to a string
|
static boolean |
createNotExists(int action)
Check if the file action value indicates that the file should be created if the file
does not exist.
|
static boolean |
openIfExists(int action)
Check if the open file if exists action is set.
|
static boolean |
truncateExistingFile(int action)
Check if the existing file should be truncated.
|
public static final int FailIfExists
public static final int OpenIfExists
public static final int TruncateExisting
public static final int CreateNotExist
public static final int FileExisted
public static final int FileCreated
public static final int FileTruncated
public static final int NTSupersede
public static final int NTOpen
public static final int NTCreate
public static final int NTOpenIf
public static final int NTOverwrite
public static final int NTOverwriteIf
public static final boolean createNotExists(int action)
action
- intpublic static final boolean openIfExists(int action)
action
- intpublic static final boolean truncateExistingFile(int action)
action
- intpublic static final String asString(int flags)
flags
- intCopyright © 2005–2018 Alfresco Software. All rights reserved.