org.jwall.web.audit.util
Class Base64Codec

java.lang.Object
  extended by org.jwall.web.audit.util.Base64Codec

public class Base64Codec
extends Object

This class is basically just a wrapper around a real codec implementation. The current implementation just uses apache commons codec.

Author:
Christian Bockermann <chris@jwall.org>

Constructor Summary
Base64Codec()
           
 
Method Summary
 byte[] decode(byte[] data)
          Decode a chunk of bytes using Base64 decoding.
 byte[] encode(byte[] data)
          Encode a chunk of byte using Base64 encoding.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64Codec

public Base64Codec()
Method Detail

encode

public byte[] encode(byte[] data)
Encode a chunk of byte using Base64 encoding.

Parameters:
data - The data to encode.
Returns:
The encoded data.

decode

public byte[] decode(byte[] data)
Decode a chunk of bytes using Base64 decoding.

Parameters:
data - The data to decode.
Returns:
The decoded data.


Copyright © 2012 jwall.org. All Rights Reserved.