Enum Class Utf8View.ValidationError

java.lang.Object
java.lang.Enum<Utf8View.ValidationError>
express.mvp.roray.utils.memory.Utf8View.ValidationError
All Implemented Interfaces:
Serializable, Comparable<Utf8View.ValidationError>, Constable
Enclosing class:
Utf8View

public static enum Utf8View.ValidationError extends Enum<Utf8View.ValidationError>
Types of UTF-8 validation errors.
  • Enum Constant Details

    • UNEXPECTED_CONTINUATION

      public static final Utf8View.ValidationError UNEXPECTED_CONTINUATION
      Continuation byte (0x80-0xBF) found where a leading byte was expected.
    • INVALID_CONTINUATION

      public static final Utf8View.ValidationError INVALID_CONTINUATION
      Invalid continuation byte in a multi-byte sequence.
    • INCOMPLETE_SEQUENCE

      public static final Utf8View.ValidationError INCOMPLETE_SEQUENCE
      Multi-byte sequence is incomplete (truncated at end of data).
    • OVERLONG_ENCODING

      public static final Utf8View.ValidationError OVERLONG_ENCODING
      Overlong encoding (code point encoded with more bytes than necessary).
    • INVALID_LEADING_BYTE

      public static final Utf8View.ValidationError INVALID_LEADING_BYTE
      Invalid leading byte (0xF8-0xFF).
    • INVALID_CODE_POINT

      public static final Utf8View.ValidationError INVALID_CODE_POINT
      Code point beyond U+10FFFF.
    • SURROGATE_CODE_POINT

      public static final Utf8View.ValidationError SURROGATE_CODE_POINT
      Surrogate code point (U+D800-U+DFFF) which is invalid in UTF-8.
  • Method Details

    • values

      public static Utf8View.ValidationError[] 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

      public static Utf8View.ValidationError valueOf(String name)
      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 name
      NullPointerException - if the argument is null