public enum FileOpenAction extends java.lang.Enum<FileOpenAction>
IGuestSession.fileOpen(String,org.virtualbox_6_1.FileAccessMode,org.virtualbox_6_1.FileOpenAction,Long)
andIGuestSession.fileOpenEx(String,org.virtualbox_6_1.FileAccessMode,org.virtualbox_6_1.FileOpenAction,org.virtualbox_6_1.FileSharingMode,Long,List)
should take whether the file being opened exists or not.
Interface ID: {12BC97E2-4FC6-A8B4-4F84-0CBF4AB970D2}Enum Constant and Description |
---|
AppendOrCreate
Opens an existing file and places the file pointer at the end of
the file, creates the file if it does not exist.
|
CreateNew
Creates a new file is no file exists, fails if there is a file there already.
|
CreateOrReplace
Creates a new file, replace any existing file.
|
OpenExisting
Opens an existing file, fails if no file exists.
|
OpenExistingTruncated
Opens and truncate an existing file, fails if no file exists.
|
OpenOrCreate
Opens an existing file, creates a new one if no file exists.
|
Modifier and Type | Method and Description |
---|---|
static FileOpenAction |
fromValue(long v) |
static FileOpenAction |
fromValue(java.lang.String v) |
int |
value() |
static FileOpenAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileOpenAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileOpenAction OpenExisting
public static final FileOpenAction OpenOrCreate
public static final FileOpenAction CreateNew
public static final FileOpenAction CreateOrReplace
public static final FileOpenAction OpenExistingTruncated
public static final FileOpenAction AppendOrCreate
public static FileOpenAction[] values()
for (FileOpenAction c : FileOpenAction.values()) System.out.println(c);
public static FileOpenAction 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 int value()
public static FileOpenAction fromValue(long v)
public static FileOpenAction fromValue(java.lang.String v)