Package com.helger.web.encoding
Class RFC2047Helper
- java.lang.Object
-
- com.helger.web.encoding.RFC2047Helper
-
@Immutable public final class RFC2047Helper extends Object
RFC 2047 Helper. MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text- Author:
- Apache Abdera
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRFC2047Helper.ECodec
-
Field Summary
Fields Modifier and Type Field Description static CharsetDEFAULT_CHARSET
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringdecode(String sValue)Used to decode a string as specified by RFC 2047static Stringencode(String sValue)static Stringencode(String sValue, Charset aCharset)static Stringencode(String sValue, Charset aCharset, RFC2047Helper.ECodec eCodec)Used to encode a string as specified by RFC 2047
-
-
-
Field Detail
-
DEFAULT_CHARSET
public static final Charset DEFAULT_CHARSET
-
-
Method Detail
-
encode
@Nullable public static String encode(@Nullable String sValue, @Nonnull Charset aCharset, RFC2047Helper.ECodec eCodec)
Used to encode a string as specified by RFC 2047- Parameters:
sValue- The string to encodeaCharset- The character set to use for the encodingeCodec- Codec type- Returns:
- Encoded String
-
-