public static enum RubyIO.Mode extends java.lang.Enum<RubyIO.Mode>
RubyIO.| Enum Constant and Description |
|---|
A
Append.
|
AR
Append and Read.
|
R
Read.
|
RW
Read and Write.
|
W
Write.
|
WR
Write and Read.
|
| Modifier and Type | Method and Description |
|---|---|
static RubyIO.Mode |
fromString(java.lang.String mode)
Retrieves a Mode from a String.
|
boolean |
isReadable()
Checks if it is readable.
|
boolean |
isWritable()
Checks if it is Writable.
|
java.lang.String |
toString() |
static RubyIO.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RubyIO.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RubyIO.Mode R
public static final RubyIO.Mode RW
public static final RubyIO.Mode W
public static final RubyIO.Mode WR
public static final RubyIO.Mode A
public static final RubyIO.Mode AR
public static RubyIO.Mode[] values()
for (RubyIO.Mode c : RubyIO.Mode.values()) System.out.println(c);
public static RubyIO.Mode 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 boolean isReadable()
public boolean isWritable()
public static RubyIO.Mode fromString(java.lang.String mode)
mode - in String formjava.lang.IllegalArgumentException - if the permission is not matched any of the Modepublic java.lang.String toString()
toString in class java.lang.Enum<RubyIO.Mode>