public class RFC1522BCodec extends AbstractRFC1522Codec
RFC 1522 describes techniques to allow the encoding of non-ASCII text in various portions of a RFC 822 [2] message header, in a manner which is unlikely to confuse existing message handling software.
This class is immutable and thread-safe.
POSTFIX, PREFIX, SEP| Constructor and Description |
|---|
RFC1522BCodec()
Default constructor with the UTF-8 charset.
|
RFC1522BCodec(Charset aCharset)
Constructor which allows for the selection of a default charset
|
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
getDecoded(byte[] aEncodedBuffer,
int nOfs,
int nLen) |
protected byte[] |
getEncoded(byte[] aDecodedBuffer,
int nOfs,
int nLen) |
protected String |
getRFC1522Encoding()
Returns the codec name (referred to as encoding in the RFC 1522).
|
getCharset, getDecoded, getEncodedprotected String getRFC1522Encoding()
AbstractRFC1522CodecgetRFC1522Encoding in class AbstractRFC1522Codec@Nullable @ReturnsMutableCopy protected byte[] getEncoded(@Nullable byte[] aDecodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
getEncoded in class AbstractRFC1522Codec@Nullable @ReturnsMutableCopy protected byte[] getDecoded(@Nullable byte[] aEncodedBuffer, @Nonnegative int nOfs, @Nonnegative int nLen)
getDecoded in class AbstractRFC1522CodecCopyright © 2014–2022 Philip Helger. All rights reserved.