IOUtils
class IOUtils
Utility functions
Functions
Link copied to clipboard
Closes the given Closeable and swallows any IOException that may occur.
Link copied to clipboard
Copies the content of a InputStream into an OutputStream.
Copies the content of a InputStream into an OutputStream
Link copied to clipboard
Copies part of the content of a InputStream into an OutputStream.
Copies part of the content of a InputStream into an OutputStream
Link copied to clipboard
Reads as much from input as possible to fill the given array.
Reads
b.remaining() bytes from the given channel starting at the current channel's position.Reads as much from input as possible to fill the given array with the given amount of bytes.
Link copied to clipboard
Skips the given number of bytes by repeatedly invoking skip on the given input stream if necessary.
Link copied to clipboard
Gets the contents of an
InputStream as a byte[].