Then it can be simplified further: http://cr.openjdk.java.net/~serb/8212680/webrev.01
I added the new option since I am not sure how important the usage of "PNG_MAXIMUM_INFLATE_WINDOW or PNG_SKIP_sRGB_CHECK_PROFILE"As I said, I don't see anything important ...
-- Best regards, Sergey.