Smack

org.jivesoftware.smack.util
Class Base64Encoder

java.lang.Object
  extended by org.jivesoftware.smack.util.Base64Encoder
All Implemented Interfaces:
StringEncoder

public class Base64Encoder
extends java.lang.Object
implements StringEncoder

A Base 64 encoding implementation.

Author:
Florian Schmaus

Method Summary
 java.lang.String decode(java.lang.String s)
          Decodes an string back to it's initial representation
 java.lang.String encode(java.lang.String s)
          Encodes an string to another representation
static Base64Encoder getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Base64Encoder getInstance()

encode

public java.lang.String encode(java.lang.String s)
Description copied from interface: StringEncoder
Encodes an string to another representation

Specified by:
encode in interface StringEncoder
Returns:

decode

public java.lang.String decode(java.lang.String s)
Description copied from interface: StringEncoder
Decodes an string back to it's initial representation

Specified by:
decode in interface StringEncoder
Returns:

Smack

Copyright © 2003-2007 Jive Software.