public class IOUtilsImpl extends Object
| Constructor and Description |
|---|
IOUtilsImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFile(Path path)
Determines whether the given path represents a file.
|
Stream<String> |
lines(Path path)
Returns a Stream of the given file's lines.
|
Stream<Path> |
listFiles(Path root,
Predicate<Path> filter)
Lists files in the given root directory that match the given predicate.
|
public Stream<String> lines(Path path) throws RuntimeIOException
path - The file to read from.RuntimeIOException - If an IO error occurs.public Stream<Path> listFiles(Path root, Predicate<Path> filter)
root - The root to search in.filter - For filtering the returned files.public boolean isFile(Path path)
path - The path to check.Copyright © 2014–2018. All rights reserved.