public enum EMimeQuoting extends Enum<EMimeQuoting>
| Enum Constant and Description |
|---|
QUOTED_PRINTABLE
Create a quoted printable String.
|
QUOTED_STRING
Create a quoted string according to RFC 822 (surrounding everything in
double-quotes and masking using backslash).
|
URL_ESCAPE
Create a URL escaped String.
|
| Modifier and Type | Field and Description |
|---|---|
static char |
QUOTED_STRING_MASK_CHAR |
static char |
QUOTED_STRING_SEPARATOR_CHAR |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getQuotedString(String sUnquotedString) |
abstract String |
getUnquotedString(String sQuotedString) |
boolean |
isQuotedString() |
static EMimeQuoting |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EMimeQuoting[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EMimeQuoting QUOTED_STRING
foo bar results in "foo bar"public static final EMimeQuoting QUOTED_PRINTABLE
foo bar results in foo=20barpublic static final EMimeQuoting URL_ESCAPE
foo bar results in foo%20barpublic static final char QUOTED_STRING_SEPARATOR_CHAR
public static final char QUOTED_STRING_MASK_CHAR
public static EMimeQuoting[] values()
for (EMimeQuoting c : EMimeQuoting.values()) System.out.println(c);
public static EMimeQuoting 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 null@Nonnull @Nonempty public abstract String getQuotedString(@Nonnull @Nonempty String sUnquotedString) throws EncodeException
EncodeException@Nonnull @Nonempty public abstract String getUnquotedString(@Nonnull @Nonempty String sQuotedString) throws DecodeException
DecodeExceptionpublic boolean isQuotedString()
Copyright © 2014–2016 Philip Helger. All rights reserved.