Package i2p.susi.webmail.encoding
Class Base64
java.lang.Object
i2p.susi.webmail.encoding.Encoding
i2p.susi.webmail.encoding.Base64
- Author:
- susi
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(InputStream in, Buffer bout) encode
(byte[] in) Encode a byte array to a ASCII or ISO-8859-1 String.void
encode
(InputStream in, Writer strBuf) More efficient than supergetName()
-
Constructor Details
-
Base64
public Base64()
-
-
Method Details
-
getName
-
encode
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:
- Base64-encoded String.
- Throws:
EncodingException
-
encode
More efficient than super- Overrides:
encode
in classEncoding
- Parameters:
in
-- Throws:
IOException
- Since:
- public since 0.9.33 with new params
- See Also:
-
decode
- Specified by:
decode
in classEncoding
- Throws:
DecodingException
IOException
- Since:
- 0.9.34
- See Also:
-