public enum FileShare extends java.lang.Enum<FileShare>
Enum Constant and Description |
---|
Delete
Allows subsequent deleting of a file.
|
Inheritable
Makes the file handle inheritable by child processes.
|
None
Declines sharing of the current file.
|
Read
Allows subsequent opening of the file for reading.
|
ReadWrite
Allows subsequent opening of the file for reading or writing.
|
Write
Allows subsequent opening of the file for writing.
|
Modifier and Type | Method and Description |
---|---|
static FileShare |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileShare[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileShare Delete
public static final FileShare Inheritable
public static final FileShare None
public static final FileShare Read
public static final FileShare ReadWrite
public static final FileShare Write
public static FileShare[] values()
for (FileShare c : FileShare.values()) System.out.println(c);
public static FileShare 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 null