public enum ErrorCode extends Enum<ErrorCode>
FileReader
interface.Enum Constant and Description |
---|
ABORT_ERR
The file operation was aborted, probably due to a call to the FileReader abort() method.
|
ENCODING_ERR
The file data cannot be accurately represented in a data URL.
|
NOT_FOUND_ERR
File not found.
|
NOT_READABLE_ERR
File could not be read.
|
SECURITY_ERR
The file could not be accessed for security reasons.
|
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
fromValue(short value)
Converts a javascript error code to a java constant
|
abstract short |
getValue()
Returns the numerical javascript value corresponding
to this constant.
|
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode NOT_FOUND_ERR
public static final ErrorCode SECURITY_ERR
public static final ErrorCode ABORT_ERR
public static final ErrorCode NOT_READABLE_ERR
public static final ErrorCode ENCODING_ERR
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode 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 short getValue()
public static ErrorCode fromValue(short value)
value
- a javascript error code.Copyright © 2017. All Rights Reserved.