public enum SeekOrigin extends java.lang.Enum<SeekOrigin>
Enum Constant and Description |
---|
Begin
Specifies the beginning of a stream.
|
Current
Specifies the current position within a stream.
|
End
Specifies the end of a stream.
|
Modifier and Type | Method and Description |
---|---|
static SeekOrigin |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SeekOrigin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SeekOrigin Begin
public static final SeekOrigin Current
public static final SeekOrigin End
public static SeekOrigin[] values()
for (SeekOrigin c : SeekOrigin.values()) System.out.println(c);
public static SeekOrigin 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