public enum TapeEofBehaviour extends Enum<TapeEofBehaviour>
| Enum Constant and Description |
|---|
READS_MINUS_ONE |
READS_ZERO |
THROWS |
| Modifier and Type | Method and Description |
|---|---|
abstract Integer |
getEofValue(Tape tape,
DataInput input) |
static TapeEofBehaviour |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TapeEofBehaviour[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TapeEofBehaviour THROWS
public static final TapeEofBehaviour READS_ZERO
public static final TapeEofBehaviour READS_MINUS_ONE
public static TapeEofBehaviour[] values()
for (TapeEofBehaviour c : TapeEofBehaviour.values()) System.out.println(c);
public static TapeEofBehaviour 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 abstract Integer getEofValue(Tape tape, DataInput input) throws TapeIOException
TapeIOExceptionCopyright © 2018. All rights reserved.