java.lang.Object
i2p.susi.webmail.encoding.Encoding
i2p.susi.webmail.encoding.QuotedPrintable
See also: Quoted-printable
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionA bare instance is ready to encode or decode; the only inherited state is the logger that Encoding's constructor sets up from the global context.Method Summary
All MethodsModifier and TypeMethodDescriptionvoiddecode(InputStream in, Buffer bout) Decode quoted-printable input into the buffer.encode(byte[] in) Encode the bytes as quoted-printable.voidencode(InputStream in, Writer out) More efficient than super.getName()Returns the name of this encoding.Methods inherited from class Encoding
decode, decode, decode, decode, decode, encodeModifier and TypeMethodDescriptiondecode(byte[] in) Decode a byte array using default offset and length.decode(byte[] in, int offset, int length) Decode a portion of a byte array.Decode a buffer into another buffer.voidDecode a buffer into another buffer using the input stream.Decode a string.Encode a (UTF-8) String to a ASCII or ISO-8859-1 String.
Field Details
BUFSIZE
private static int BUFSIZEInitial buffer size for decoded output.
Constructor Details
QuotedPrintable
public QuotedPrintable()A bare instance is ready to encode or decode; the only inherited state is the logger that Encoding's constructor sets up from the global context.
Method Details
getName
encode
Encode the bytes as quoted-printable.- Specified by:
encodein classEncoding- Parameters:
in- the byte array to encode- Returns:
- Base64-encoded String.
- Throws:
EncodingException- if encoding fails
encode
More efficient than super.- Overrides:
encodein classEncoding- Parameters:
in- the stream of bytes to read and encodeout- the writer to write encoded output to- Throws:
IOException- if reading from stream or writing fails- See Also:
decode
Decode quoted-printable input into the buffer.- Specified by:
decodein classEncoding- Parameters:
in- the input stream to read data frombout- the buffer to write decoded data to- Throws:
IOException- if reading from input stream fails- See Also: