public enum WhenceFlag extends Enum<WhenceFlag>
| Enum Constant and Description |
|---|
SEEK_CUR
The offset is set to its current location plus offset bytes.
|
SEEK_DATA
Adjust the file offset to the next location in the file greater than or equal to offset containing data.
|
SEEK_END
The offset is set to the size of the file plus offset bytes.
|
SEEK_HOLE
Adjust the file offset to the next hole in the file greater than or equal to offset.
|
SEEK_SET
The offset is set to offset bytes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
value()
This method is a getter for the value instance variable.
|
static WhenceFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WhenceFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WhenceFlag SEEK_SET
public static final WhenceFlag SEEK_CUR
public static final WhenceFlag SEEK_END
public static final WhenceFlag SEEK_DATA
public static final WhenceFlag SEEK_HOLE
public static WhenceFlag[] values()
for (WhenceFlag c : WhenceFlag.values()) System.out.println(c);
public static WhenceFlag 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 value()
Copyright © 2024. All rights reserved.