RFR: 8311216: DataURI can lose information in some charset environments [v2]
Michael Strauß
mstrauss at openjdk.org
Sat Oct 28 20:25:40 UTC 2023
On Sat, 28 Oct 2023 18:10:59 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:
>> Solved by calculating the exact size first.
>
> Thanks, I see you went this route, you could eliminate the `ByteArrayOutputStream` now, perhaps have the signature of `decodePercentEncodingToStream` changed to:
>
> private static byte[] decodePercentEncodingToStream(String input, int size)
I didn't to exactly that, but something quite like it.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1165#discussion_r1375317751
More information about the openjfx-dev
mailing list