Package i2p.susi.webmail.encoding
Class SevenBit
java.lang.Object
i2p.susi.webmail.encoding.Encoding
i2p.susi.webmail.encoding.SevenBit
Decode only.
- Author:
- susi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] in, int offset, int length) We don't do any 8-bit checks like we do for decode(byte[])voiddecode(InputStream in, Buffer out) Copy in to out, unchanged We don't do any 8-bit checks like we do for decode(byte[])encode(byte[] in) Encode a byte array to a ASCII or ISO-8859-1 String.getName()
-
Constructor Details
-
SevenBit
public SevenBit()
-
-
Method Details
-
getName
-
encode
Description copied from class:EncodingEncode 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:
encodein classEncoding- Returns:
- Encoded string.
- Throws:
EncodingException- always
-
decode
- Overrides:
decodein classEncoding- Returns:
- Output buffer containing decoded String.
- Throws:
DecodingException- on illegal characters
-
decode
We don't do any 8-bit checks like we do for decode(byte[]) -
decode
Copy in to out, unchanged We don't do any 8-bit checks like we do for decode(byte[])- Specified by:
decodein classEncoding- Throws:
DecodingExceptionIOException- Since:
- 0.9.34
- See Also:
-