public static String encode(String string){
  return new String(encode(string.getBytes()));
}

public static String encode ( String string ) { return new String ( encode ( string . getBytes ( ) ) ) ; }
base64 encodes the specified string using the platform ' s default encoding .
