i2p.susi.webmail.encoding
Interface Encoding

All Known Implementing Classes:
Base64, EightBit, HeaderLine, HTML, QuotedPrintable, SevenBit

public interface Encoding

Interface to encode/decode content transfer encodings like quoted-printable, base64 etc.

Author:
susi

Method Summary
 ReadBuffer decode(byte[] in)
           
 ReadBuffer decode(byte[] in, int offset, int length)
           
 ReadBuffer decode(ReadBuffer in)
           
 ReadBuffer decode(java.lang.String str)
           
 java.lang.String encode(byte[] in)
           
 java.lang.String encode(java.lang.String str)
           
 java.lang.String getName()
           
 

Method Detail

getName

java.lang.String getName()

encode

java.lang.String encode(byte[] in)
                        throws EncodingException
Parameters:
in -
Returns:
Throws:
EncodingException

encode

java.lang.String encode(java.lang.String str)
                        throws EncodingException
Parameters:
str -
Returns:
Throws:
EncodingException

decode

ReadBuffer decode(byte[] in)
                  throws DecodingException
Parameters:
in -
Returns:
Throws:
DecodingException

decode

ReadBuffer decode(byte[] in,
                  int offset,
                  int length)
                  throws DecodingException
Parameters:
in -
offset -
length -
Returns:
Throws:
DecodingException

decode

ReadBuffer decode(java.lang.String str)
                  throws DecodingException
Parameters:
str -
Returns:
Throws:
DecodingException

decode

ReadBuffer decode(ReadBuffer in)
                  throws DecodingException
Parameters:
in -
Returns:
Throws:
DecodingException