Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sourcetap.license
Class Base64Coder  view Base64Coder download Base64Coder.java

java.lang.Object
  extended bycom.sourcetap.license.Base64Coder

public class Base64Coder
extends java.lang.Object

A Base64 Encoder/Decoder. This class is used to encode and decode data in Base64 format as described in RFC 1521.

Copyright 2003: Christian d'Heureuse, Inventec Informatik AG, Switzerland.
License: This is "Open Source" software and released under the GNU/GPL license. It is provided "as is" without warranty of any kind. Please contact the author for other licensing arrangements.
Home page: www.source-code.biz

Version history:
2003-07-22 Christian d'Heureuse (chdh): Module created.


Field Summary
private static char[] map1
           
private static byte[] map2
           
 
Constructor Summary
Base64Coder()
           
 
Method Summary
static byte[] decode(char[] in)
          Decodes Base64 data.
static java.lang.String decode(java.lang.String s)
          Decodes a Base64 string.
static char[] encode(byte[] in)
          Encodes a byte array into Base64 format.
static java.lang.String encode(java.lang.String s)
          Encodes a string into Base64 format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map1

private static char[] map1

map2

private static byte[] map2
Constructor Detail

Base64Coder

public Base64Coder()
Method Detail

encode

public static java.lang.String encode(java.lang.String s)
Encodes a string into Base64 format. No blanks or line breaks are inserted.


encode

public static char[] encode(byte[] in)
Encodes a byte array into Base64 format. No blanks or line breaks are inserted.


decode

public static java.lang.String decode(java.lang.String s)
Decodes a Base64 string.


decode

public static byte[] decode(char[] in)
Decodes Base64 data. No blanks or line breaks are allowed within the Base64 encoded data.