Smack

org.jivesoftware.smack.util
Class Base32Encoder

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

public class Base32Encoder
extends Object
implements StringEncoder

Base32 string encoding is useful for when filenames case-insensitive filesystems are encoded. Base32 representation takes roughly 20% more space then Base64.

Author:
Florian Schmaus Based on code by Brian Wellington (bwelling@xbill.org)
See Also:
Base32 Wikipedia entry

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

Method Detail

getInstance

public static Base32Encoder getInstance()

decode

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

Specified by:
decode in interface StringEncoder
Returns:

encode

public String encode(String str)
Description copied from interface: StringEncoder
Encodes an string to another representation

Specified by:
encode in interface StringEncoder
Returns:

Smack

Copyright © 2003-2007 Jive Software.