gnu.inet.util
Class BASE64

java.lang.Object
  extended by gnu.inet.util.BASE64

public final class BASE64
extends java.lang.Object

Encodes and decodes text according to the BASE64 encoding.

Author:
Chris Burdess

Method Summary
static byte[] decode(byte[] bs)
          Decode the specified byte array using the BASE64 algorithm.
static byte[] encode(byte[] bs)
          Encode the specified byte array using the BASE64 algorithm.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static byte[] encode(byte[] bs)
Encode the specified byte array using the BASE64 algorithm.

Parameters:
bs - the source byte array

decode

public static byte[] decode(byte[] bs)
Decode the specified byte array using the BASE64 algorithm.

Parameters:
bs - the source byte array

main

public static void main(java.lang.String[] args)


© Copyright 2003 The Free Software Foundation, all rights reserved