public enum FileOffsetError extends java.lang.Enum<FileOffsetError>
| Enum Constant and Description |
|---|
EOF
Hit EoF before finding the specified data
|
INVALID_ARGUMENTS
Invalid arguments were provided, thus data was unable to be located.
|
IO_EXCEPTION
An IOException occurred while trying to locate the specified data
|
SPECIFIED_DATA_NOT_FOUND
The offset for the specified data was unable to be calculated
because the specified data was not able to be located.
|
UNKNOWN
An unknown error occured when attempting to locate the specified data
|
| Modifier and Type | Method and Description |
|---|---|
long |
getErrorCode() |
static FileOffsetError |
identify(long errorCode)
Returns an error code for the specified long, or null
if the long is not negative
|
static FileOffsetError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileOffsetError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileOffsetError SPECIFIED_DATA_NOT_FOUND
public static final FileOffsetError EOF
public static final FileOffsetError IO_EXCEPTION
public static final FileOffsetError INVALID_ARGUMENTS
public static final FileOffsetError UNKNOWN
public static FileOffsetError[] values()
for (FileOffsetError c : FileOffsetError.values()) System.out.println(c);
public static FileOffsetError 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 nullpublic long getErrorCode()
public static FileOffsetError identify(long errorCode)
errorCode - The error code to find an error for