freemind.main
Class Base64Coding

java.lang.Object
  extended by freemind.main.Base64Coding

public class Base64Coding
extends java.lang.Object

Partial implementation of a Preference node.

Since:
1.4
Author:
Mark Wielaard (mark@klomp.org) 22.3.2008: FC: Changed name from AbstractPreferences to the current, Removed all but base64 coding.

Constructor Summary
Base64Coding()
           
 
Method Summary
static byte[] decode64(java.lang.String s)
          Helper method for decoding a Base64 string as an byte array.
static java.lang.String encode64(byte[] b)
          Helper method for encoding an array of bytes as a Base64 String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64Coding

public Base64Coding()
Method Detail

decode64

public static byte[] decode64(java.lang.String s)
Helper method for decoding a Base64 string as an byte array. Returns null on encoding error. This method does not allow any other characters present in the string then the 65 special base64 chars.


encode64

public static java.lang.String encode64(byte[] b)
Helper method for encoding an array of bytes as a Base64 String.