private String encodeToString(String in,int flags) throws Exception {
  String b64=Base64.encodeToString(in.getBytes(),flags);
  String dec=decodeString(b64);
  assertEquals(in,dec);
  return b64;
}

private String encodeToString ( String in , int flags ) throws Exception { String b64 = Base64 . encodeToString ( in . getBytes ( ) , flags ) ; String dec = decodeString ( b64 ) ; assertEquals ( in , dec ) ; return b64 ; }
encodes the string ' in ' using ' flags ' . asserts that decoding gives the same string . returns the encoded string .
