java.lang.Object
i2p.susi.webmail.encoding.Encoding
i2p.susi.webmail.encoding.EightBit
Decode only. See
encode(byte[]).Field Summary
Constructor Summary
ConstructorsMethod Summary
All MethodsMethods inherited from class Encoding
decode, decode, decode, encode, encodeModifier and TypeMethodDescriptiondecode(byte[] in) Decode a byte array using default offset and length.voidDecode a buffer into another buffer using the input stream.Decode a string.voidencode(InputStream in, Writer out) Encode an input stream of bytes to a ASCII or ISO-8859-1 String.Encode a (UTF-8) String to a ASCII or ISO-8859-1 String.
Constructor Details
EightBit
public EightBit()Constructor. Decoding reads the whole stream and needs no configuration, so a bare instance is ready to use.
Method Details
getName
encode
Not supported, always throws.- Specified by:
encodein classEncoding- Parameters:
in- the byte array to encode- Returns:
- the encoded string, SMTP-safe
- Throws:
EncodingException- always; 8bit encoding is not supported
decode
Description copied from class:EncodingDecode a portion of a byte array.decode
decode
Copy in to out, unchanged.- Specified by:
decodein classEncoding- Parameters:
in- the input stream to read data fromout- the buffer to write decoded data to- Throws:
IOException- if reading from input stream fails- See Also: