And Decoder (was Re: No newline at the end of Base64.getMimeEncoder()) (original) (raw)

Weijun Wang weijun.wang at oracle.com
Thu Jan 17 10:52:06 UTC 2013


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



More information about the core-libs-dev mailing list