org.apache.shindig.common.util
Class Base32
java.lang.Object
org.apache.shindig.common.util.Base32
- All Implemented Interfaces:
- org.apache.commons.codec.BinaryDecoder, org.apache.commons.codec.BinaryEncoder, org.apache.commons.codec.Decoder, org.apache.commons.codec.Encoder
public class Base32
- extends Object
- implements org.apache.commons.codec.BinaryDecoder, org.apache.commons.codec.BinaryEncoder
Implements Base32 encoding using 0-9a-v, with no padding for partial bytes.
This is suitable for base32 encoding any binary data that needs to be passed
in a web-safe context, but it differs from base32 implementations used in
other contexts.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Base32
public Base32()
encodeBase32
public static byte[] encodeBase32(byte[] arg0)
decodeBase32
public static byte[] decodeBase32(byte[] arg0)
decode
public byte[] decode(byte[] arg0)
throws org.apache.commons.codec.DecoderException
- Specified by:
decode in interface org.apache.commons.codec.BinaryDecoder
- Throws:
org.apache.commons.codec.DecoderException
encode
public byte[] encode(byte[] arg0)
throws org.apache.commons.codec.EncoderException
- Specified by:
encode in interface org.apache.commons.codec.BinaryEncoder
- Throws:
org.apache.commons.codec.EncoderException
decode
public Object decode(Object object)
throws org.apache.commons.codec.DecoderException
- Specified by:
decode in interface org.apache.commons.codec.Decoder
- Throws:
org.apache.commons.codec.DecoderException
encode
public Object encode(Object object)
throws org.apache.commons.codec.EncoderException
- Specified by:
encode in interface org.apache.commons.codec.Encoder
- Throws:
org.apache.commons.codec.EncoderException
Copyright © 2007-2012. All Rights Reserved.