public enum Seek extends Enum<Seek>
Modifier and Type | Class and Description |
---|---|
class |
Seek.Offset |
Enum Constant and Description |
---|
FROM_BEGINNING |
FROM_CURRENT |
FROM_END |
TO_ABSOLUTE |
Modifier and Type | Method and Description |
---|---|
Seek.Offset |
offset(long offset) |
static Seek |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Seek[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Seek FROM_BEGINNING
public static final Seek FROM_END
public static final Seek FROM_CURRENT
public static final Seek TO_ABSOLUTE
public static Seek[] values()
for (Seek c : Seek.values()) System.out.println(c);
public static Seek 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 Seek.Offset offset(long offset)
Copyright © 2019 Red Hat. All rights reserved.