Package i2p.susi.webmail.encoding
Class QuotedPrintable
- java.lang.Object
-
- i2p.susi.webmail.encoding.Encoding
-
- i2p.susi.webmail.encoding.QuotedPrintable
-
public class QuotedPrintable extends Encoding
ref: https://en.wikipedia.org/wiki/Quoted-printable- Author:
- susi
-
-
Constructor Summary
Constructors Constructor Description QuotedPrintable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(InputStream in, Buffer bout)
String
encode(byte[] in)
Encode a byte array to a ASCII or ISO-8859-1 String.void
encode(InputStream in, Writer out)
More efficient than superString
getName()
-
-
-
Method Detail
-
encode
public String encode(byte[] in) throws EncodingException
Description copied from class:Encoding
Encode a byte array to a ASCII or ISO-8859-1 String. Output must be SMTP-safe: Line length of 998 or less, using SMTP-safe characters, followed by \r\n, and must not start with a '.' unless escaped by a 2nd dot. For some encodings, max line length is 76.- Specified by:
encode
in classEncoding
- Returns:
- Encoded string.
- Throws:
EncodingException
-
encode
public void encode(InputStream in, Writer out) throws IOException
More efficient than super- Overrides:
encode
in classEncoding
- Parameters:
in
-- Throws:
IOException
- Since:
- since 0.9.33
- See Also:
Encoding.encode(String)
-
decode
public void decode(InputStream in, Buffer bout) throws IOException
- Specified by:
decode
in classEncoding
- Throws:
DecodingException
IOException
- Since:
- 0.9.34
- See Also:
Encoding.decode(byte[], int, int)
-
-