At the bare minimum I would use runtime null/range checks and give a little bit 
more freedom for those who want to control buffer (or probably reuse already 
existing one): http://cr.openjdk.java.net/~prappo/ioutil/webrev.01/

I would also add some clarifications in the javadoc.

-Pavel

Reply via email to