i2p.susi.webmail.encoding
Class Base64

java.lang.Object
  extended by i2p.susi.webmail.encoding.Base64
All Implemented Interfaces:
Encoding

public class Base64
extends java.lang.Object
implements Encoding

Author:
susi

Constructor Summary
Base64()
           
 
Method Summary
 ReadBuffer decode(byte[] in)
           
 ReadBuffer decode(byte[] in, int offset, int length)
           
 ReadBuffer decode(ReadBuffer in)
           
 ReadBuffer decode(java.lang.String text)
           
 java.lang.String encode(byte[] in)
           
 java.lang.String encode(java.lang.String str)
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64

public Base64()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Encoding

encode

public java.lang.String encode(byte[] in)
                        throws EncodingException
Specified by:
encode in interface Encoding
Returns:
Throws:
EncodingException

encode

public java.lang.String encode(java.lang.String str)
                        throws EncodingException
Specified by:
encode in interface Encoding
Returns:
Throws:
EncodingException

decode

public ReadBuffer decode(java.lang.String text)
                  throws DecodingException
Specified by:
decode in interface Encoding
Parameters:
text -
Returns:
Throws:
DecodingException

decode

public ReadBuffer decode(byte[] in)
                  throws DecodingException
Specified by:
decode in interface Encoding
Returns:
Throws:
DecodingException

decode

public ReadBuffer decode(byte[] in,
                         int offset,
                         int length)
                  throws DecodingException
Specified by:
decode in interface Encoding
Returns:
Throws:
DecodingException

decode

public ReadBuffer decode(ReadBuffer in)
                  throws DecodingException
Specified by:
decode in interface Encoding
Returns:
Throws:
DecodingException