Add new read method "toByteArray" to handle InputStream with known size

Details

Description

I suggest adding a new method toByteArray(InputStream input, int size) to IoUtils to handle known size InputStream (e.g. files).
Current implementation based on copy method consumes more memory than necessary (at least the double) to transform a InputStream into a byte array.