Files

Class Files

public final class Files
extends Object

This class consists exclusively of static methods that operate on files, directories, or other types of files.

In most cases, the methods defined here will delegate to the associated file system provider to perform the file operations.

Since:
1.7

Methods

newInputStream

public static InputStream newInputStream(Path path,
                                         OpenOption... options)
                                  throws IOException

Opens a file, returning an input stream to read from