public enum SeekMode extends Enum<SeekMode>
File.seek(long, org.ogf.saga.file.SeekMode)
: the specified offset is
interpreted with respect to the start, the current position, or the end.Enum Constant and Description |
---|
CURRENT
Seek from the current position in the file.
|
END
Seek from the end of the file.
|
START
Seek from the start of the file.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Returns the integer value of this enumeration literal.
|
static SeekMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SeekMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SeekMode START
public static final SeekMode CURRENT
public static final SeekMode END
public static SeekMode[] values()
for (SeekMode c : SeekMode.values()) System.out.println(c);
public static SeekMode 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 nullpublic int getValue()
Copyright © 2016 Open Grid Forum. All rights reserved.