public enum Warning extends Enum<Warning>
| Enum Constant and Description |
|---|
EMPTY_BEGIN
When a BEGIN property value is empty (it is supposed to contain the name
of a component).
|
EMPTY_END
When an END property value is empty (it is supposed to contain the name
of a component).
|
MALFORMED_LINE
When a line cannot be parsed.
|
QUOTED_PRINTABLE_ERROR
When a property value cannot be decoded from quoted-printable encoding.
|
UNKNOWN_CHARSET
When a property value is encoded in quoted-printable encoding and its
defined character set is not recognized by the JVM.
|
UNKNOWN_VERSION
When a VERSION property is not recognized by the parser's
SyntaxRules. |
UNMATCHED_END
When the component in an END property does not match up with any BEGIN
properties.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Gets a message describing the warning.
|
String |
toString() |
static Warning |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Warning[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Warning MALFORMED_LINE
public static final Warning EMPTY_BEGIN
public static final Warning EMPTY_END
public static final Warning UNMATCHED_END
public static final Warning UNKNOWN_VERSION
SyntaxRules.public static final Warning UNKNOWN_CHARSET
public static final Warning QUOTED_PRINTABLE_ERROR
public static Warning[] values()
for (Warning c : Warning.values()) System.out.println(c);
public static Warning 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 String getMessage()
Copyright © 2016–2018 Michael Angstadt. All rights reserved.