Protomatter Software v1.1.7

com.protomatter.util
Class Base64

java.lang.Object
  |
  +--com.protomatter.util.Base64

public class Base64
extends java.lang.Object

Base64 encoder/decoder. Does not stream, so be careful with using large amounts of data.


Method Summary
static byte[] decode(byte[] data)
          Decode data and return bytes.
static byte[] decode(java.lang.String str)
          Decode data and return bytes.
static java.lang.String encode(byte[] d)
          Encode some data and return a String.
static void main(java.lang.String[] args)
          A simple test that encodes and decodes the first commandline argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static final java.lang.String encode(byte[] d)
Encode some data and return a String.

decode

public static final byte[] decode(java.lang.String str)
Decode data and return bytes.

decode

public static final byte[] decode(byte[] data)
Decode data and return bytes. Assumes that the data passed in is ASCII text.

main

public static final void main(java.lang.String[] args)
A simple test that encodes and decodes the first commandline argument.

Protomatter Software v1.1.7
Copyright 1998-2002 Nate Sammons

Protomatter Software v1.1.7 http://protomatter.sourceforge.net/1.1.7