org.tranche.hash
Class Base64Util

java.lang.Object
  extended by org.tranche.hash.Base64Util

public final class Base64Util
extends java.lang.Object

A helper class for working with Base64 encoded text. More prominently this class will clean up text copied and pasted from e-mails and text in to a respectable Tranche hash.

Author:
Jayson Falkner - jfalkner@umich.edu

Constructor Summary
Base64Util()
           
 
Method Summary
static java.lang.String cleanUpBase64(java.lang.String text)
          Removes non-Base64 characters from an arbitrary string, including whitespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Base64Util

public Base64Util()
Method Detail

cleanUpBase64

public static final java.lang.String cleanUpBase64(java.lang.String text)
Removes non-Base64 characters from an arbitrary string, including whitespace.

Parameters:
text -
Returns:
A string consisting of only Base64 characters.


This code is free for use both commercially and non-commercially as stated in the project's license