public enum StandardOpenOption extends Enum<StandardOpenOption> implements OpenOption
Enum Constant and Description |
---|
APPEND |
CREATE |
CREATE_NEW |
DELETE_ON_CLOSE |
DSYNC |
READ |
SPARSE |
SYNC |
TRUNCATE_EXISTING |
WRITE |
Modifier and Type | Method and Description |
---|---|
static StandardOpenOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardOpenOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardOpenOption READ
public static final StandardOpenOption WRITE
public static final StandardOpenOption APPEND
public static final StandardOpenOption TRUNCATE_EXISTING
public static final StandardOpenOption CREATE
public static final StandardOpenOption CREATE_NEW
public static final StandardOpenOption DELETE_ON_CLOSE
public static final StandardOpenOption SPARSE
public static final StandardOpenOption SYNC
public static final StandardOpenOption DSYNC
public static StandardOpenOption[] values()
for (StandardOpenOption c : StandardOpenOption.values()) System.out.println(c);
public static StandardOpenOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.