@NotThreadSafe public class QuotedPrintableCodec extends AbstractByteArrayCodec
| Constructor and Description |
|---|
QuotedPrintableCodec()
Default constructor with the UTF-8 charset.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getDecoded(byte[] aEncodedBuffer)
Decode a byte array.
|
static byte[] |
getDecodedQuotedPrintable(byte[] aEncodedBuffer) |
static byte[] |
getDecodedQuotedPrintable(String sEncodedText) |
static String |
getDecodedQuotedPrintableString(String sEncodedText,
Charset aDestCharset) |
static BitSet |
getDefaultBitSet() |
byte[] |
getEncoded(byte[] aDecodedBuffer)
Encode a byte array.
|
static byte[] |
getEncodedQuotedPrintable(BitSet aPrintableBitSet,
byte[] aDecodedBuffer) |
static byte[] |
getEncodedQuotedPrintable(byte[] aDecodedBuffer) |
static String |
getEncodedQuotedPrintableString(BitSet aPrintableBitSet,
byte[] aDecodedBuffer) |
static String |
getEncodedQuotedPrintableString(BitSet aPrintableBitSet,
String sDecodedText,
Charset aSourceCharset) |
static String |
getEncodedQuotedPrintableString(byte[] aDecodedBuffer) |
static String |
getEncodedQuotedPrintableString(String sDecodedText,
Charset aSourceCharset) |
static void |
writeEncodeQuotedPrintableByte(int b,
NonBlockingByteArrayOutputStream aBAOS)
Encodes byte into its quoted-printable representation.
|
getEncodedgetDecodedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDecodedpublic QuotedPrintableCodec()
@Nonnull @ReturnsMutableCopy public static BitSet getDefaultBitSet()
public static final void writeEncodeQuotedPrintableByte(int b,
@Nonnull
NonBlockingByteArrayOutputStream aBAOS)
b - byte to encodeaBAOS - the buffer to write to@Nullable @ReturnsMutableCopy public static byte[] getEncodedQuotedPrintable(@Nonnull BitSet aPrintableBitSet, @Nullable byte[] aDecodedBuffer)
@Nullable @ReturnsMutableCopy public static byte[] getEncodedQuotedPrintable(@Nullable byte[] aDecodedBuffer)
@Nullable @ReturnsMutableCopy public byte[] getEncoded(@Nullable byte[] aDecodedBuffer)
IByteArrayEncoderaDecodedBuffer - The byte array to be encoded. May be null.null if the parameter was
null.@Nullable @ReturnsMutableCopy public static byte[] getDecodedQuotedPrintable(@Nullable byte[] aEncodedBuffer)
@Nullable @ReturnsMutableCopy public static byte[] getDecodedQuotedPrintable(@Nullable String sEncodedText)
@Nullable @ReturnsMutableCopy public byte[] getDecoded(@Nullable byte[] aEncodedBuffer)
IByteArrayDecoderaEncodedBuffer - The byte array to be decoded. May not be null.null if the parameter was
null.@Nullable public static String getEncodedQuotedPrintableString(@Nonnull BitSet aPrintableBitSet, @Nonnull byte[] aDecodedBuffer)
@Nullable public static String getEncodedQuotedPrintableString(@Nonnull byte[] aDecodedBuffer)
@Nullable public static String getEncodedQuotedPrintableString(@Nonnull BitSet aPrintableBitSet, @Nullable String sDecodedText, @Nonnull Charset aSourceCharset)
@Nullable public static String getEncodedQuotedPrintableString(@Nullable String sDecodedText, @Nonnull Charset aSourceCharset)
Copyright © 2014–2015 Philip Helger. All rights reserved.