Common trait for all Input
and Output
instances
which map directly to a File.
Calls the specified function, closes the IO resource if the resource
mixes in java.io.Closeable
and returns the result of the function call.
Calls the specified function, closes the IO resource if the resource
mixes in java.io.Closeable
and returns the result of the function call.
the IO resource to manage
the function to invoke, with the managed resource getting passed into it
the result of the function call
Copies all bytes or characters (depending on Input type) from the specified Input to the Output.
Copies all bytes or characters (depending on Input type) from the specified Input to the Output. Rethrows all Exceptions and does not close the Input or Output afterwards.
Copies all characters from the specified Reader to the Writer.
Copies all characters from the specified Reader to the Writer. Rethrows all Exceptions and does not close the Reader or Writer afterwards.
Copies all bytes from the specified InputStream to the OutputStream.
Copies all bytes from the specified InputStream to the OutputStream. Rethrows all Exceptions and does not close the streams afterwards.
Collection of I/O utilities.