Smack

org.jivesoftware.smack.util
Class Base64FileUrlEncoder

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

public class Base64FileUrlEncoder
extends java.lang.Object
implements StringEncoder

A Base 64 encoding implementation that generates filename and Url safe encodings.

Note: This does NOT produce standard Base 64 encodings, but a variant as defined in Section 4 of RFC3548: http://www.faqs.org/rfcs/rfc3548.html.

Author:
Robin Collier

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 Base64FileUrlEncoder getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Base64FileUrlEncoder 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.