public static String encode( String s )
    {
        byte[] sBytes = s.getBytes();
        sBytes = encode( sBytes );
        s = new String( sBytes );
        return s;
    }
public static String encode ( String s ) { byte [ ] sBytes = s . getBytes ( ) ; sBytes = encode ( sBytes ) ; s = new String ( sBytes ) ; return s ; }
Encodes a String into a base 64 String. The resulting encoding is chunked at 76 bytes.
<p>

@param s String to encode.

@return encoded string.