public static <T>String encodeToBase64(Coder<T> coder,T value) throws CoderException {
  byte[] rawValue=encodeToByteArray(coder,value);
  return Base64.encodeBase64URLSafeString(rawValue);
}

public static < T > String encodeToBase64 ( Coder < T > coder , T value ) throws CoderException { byte [ ] rawValue = encodeToByteArray ( coder , value ) ; return Base64 . encodeBase64URLSafeString ( rawValue ) ; }
encodes the given value using the specified coder , and returns the base64 encoding of the encoded bytes .
