Package com.google.common.io

This package contains utility methods and classes for working with Java I/O, for example input streams, output streams, readers, writers, and files.

Many of the methods are based on the InputSupplier and OutputSupplier interfaces. They are used as factories for I/O objects that might throw IOException when being created. The advantage of using a factory is that the helper methods in this package can take care of closing the resource properly, even if an exception is thrown. The ByteStreams, CharStreams, and Files classes all have static helper methods to create new factories and to work with them.

This package is a part of the open-source Guava libraries.