Package org.rypt.f8

Enum Validity

    • Enum Constant Detail

      • ASCII

        public static final Validity ASCII
        Pure ASCII
      • UNDERFLOW_R0

        public static final Validity UNDERFLOW_R0
        Valid UTF-8 that is not necessarily truncated and that is not pure ASCII
      • UNDERFLOW_R1

        public static final Validity UNDERFLOW_R1
        Valid UTF-8 that is truncated after the first byte in a multi-byte sequence
      • UNDERFLOW_R2

        public static final Validity UNDERFLOW_R2
        Valid UTF-8 that is truncated after the second byte in a multi-byte sequence
      • UNDERFLOW_R3

        public static final Validity UNDERFLOW_R3
        Valid UTF-8 that is truncated after the third byte in a multi-byte sequence
      • MALFORMED

        public static final Validity MALFORMED
        Malformed UTF-8
    • Method Detail

      • values

        public static Validity[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Validity c : Validity.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Validity valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • isFullyValid

        public boolean isFullyValid()
      • isValidOrTruncated

        public boolean isValidOrTruncated()