public static class OutputsCollector.FilesystemBackedDelegate extends Object
Constructor and Description |
---|
FilesystemBackedDelegate() |
Modifier and Type | Method and Description |
---|---|
com.google.common.io.ByteSource |
asByteSource(Path file)
Returns a
ByteSource for the file. |
boolean |
exists(Path path)
Returns whether the path exists.
|
InputStream |
getInputStream(Path path)
Returns an
InputStream for the path. |
boolean |
isDirectory(Path path)
Returns whether the path exists as a directory.
|
boolean |
isExecutable(Path entry)
Returns whether the path is executable.
|
boolean |
isRegularFile(Path entry)
Returns whether the path exists as a regular file.
|
long |
size(Path path)
Returns the size of the file.
|
java.util.stream.Stream<Path> |
walk(Path path)
|
public com.google.common.io.ByteSource asByteSource(Path file)
ByteSource
for the file.public boolean exists(Path path)
public boolean isDirectory(Path path)
public java.util.stream.Stream<Path> walk(Path path) throws IOException
IOException
public boolean isRegularFile(Path entry)
public boolean isExecutable(Path entry)
public InputStream getInputStream(Path path) throws IOException
InputStream
for the path.IOException
public long size(Path path) throws IOException
IOException