Enum Class Utf8View.ValidationError
- All Implemented Interfaces:
Serializable, Comparable<Utf8View.ValidationError>, Constable
- Enclosing class:
Utf8View
Types of UTF-8 validation errors.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMulti-byte sequence is incomplete (truncated at end of data).Code point beyond U+10FFFF.Invalid continuation byte in a multi-byte sequence.Invalid leading byte (0xF8-0xFF).Overlong encoding (code point encoded with more bytes than necessary).Surrogate code point (U+D800-U+DFFF) which is invalid in UTF-8.Continuation byte (0x80-0xBF) found where a leading byte was expected. -
Method Summary
Modifier and TypeMethodDescriptionstatic Utf8View.ValidationErrorReturns the enum constant of this class with the specified name.static Utf8View.ValidationError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNEXPECTED_CONTINUATION
Continuation byte (0x80-0xBF) found where a leading byte was expected. -
INVALID_CONTINUATION
Invalid continuation byte in a multi-byte sequence. -
INCOMPLETE_SEQUENCE
Multi-byte sequence is incomplete (truncated at end of data). -
OVERLONG_ENCODING
Overlong encoding (code point encoded with more bytes than necessary). -
INVALID_LEADING_BYTE
Invalid leading byte (0xF8-0xFF). -
INVALID_CODE_POINT
Code point beyond U+10FFFF. -
SURROGATE_CODE_POINT
Surrogate code point (U+D800-U+DFFF) which is invalid in UTF-8.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-