This time on the decoder side:

  Base64.getMimeDecoder().decode("AA==\n")

throws an exception because the string ends with a newline. I would prefer it be acceptable.

Thanks
Max

On 01/17/2013 05:12 PM, Weijun Wang wrote:
I noticed that the encoding output of Base64.getMimeEncoder() never ends
with a newline char. There is no right or wrong on this but it will be
nice to write the current behavior into the spec.

Thanks
Max

Reply via email to