org.virtualbox_5_2
Enum FileAccessMode

java.lang.Object
  extended by java.lang.Enum<FileAccessMode>
      extended by org.virtualbox_5_2.FileAccessMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FileAccessMode>

public enum FileAccessMode
extends java.lang.Enum<FileAccessMode>

File open access mode for use withIGuestSession.fileOpen(String,org.virtualbox_5_2.FileAccessMode,org.virtualbox_5_2.FileOpenAction,Long)andIGuestSession.fileOpenEx(String,org.virtualbox_5_2.FileAccessMode,org.virtualbox_5_2.FileOpenAction,org.virtualbox_5_2.FileSharingMode,Long,List). Interface ID: {231A578F-47FB-EA30-3B3E-8489558227F0}


Enum Constant Summary
AppendOnly
          Open the file for appending only, no read or seek access.
AppendRead
          Open the file for appending and read.
ReadOnly
          Open the file only with read access.
ReadWrite
          Open the file with both read and write access.
WriteOnly
          Open the file only with write access.
 
Method Summary
static FileAccessMode fromValue(long v)
           
static FileAccessMode fromValue(java.lang.String v)
           
 int value()
           
static FileAccessMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FileAccessMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ReadOnly

public static final FileAccessMode ReadOnly
Open the file only with read access.


WriteOnly

public static final FileAccessMode WriteOnly
Open the file only with write access.


ReadWrite

public static final FileAccessMode ReadWrite
Open the file with both read and write access.


AppendOnly

public static final FileAccessMode AppendOnly
Open the file for appending only, no read or seek access. NOTE: Not yet implemented.


AppendRead

public static final FileAccessMode AppendRead
Open the file for appending and read. Writes always goes to the end of the file while reads are done at the current or specified file position. NOTE: Not yet implemented.

Method Detail

values

public static FileAccessMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FileAccessMode c : FileAccessMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FileAccessMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public int value()

fromValue

public static FileAccessMode fromValue(long v)

fromValue

public static FileAccessMode fromValue(java.lang.String v)