Returns a view of the given path as a ByteSource. Any plain OpenOption open options provided are used when opening streams to the file and may affect the behavior of the returned source and the streams it provides. See StandardOpenOption for the standard options th
(Path path, OpenOption... options)
| 82 | * equivalent to providing the {@link StandardOpenOption#READ READ} option. |
| 83 | */ |
| 84 | public static ByteSource asByteSource(Path path, OpenOption... options) { |
| 85 | return new PathByteSource(path, options); |
| 86 | } |
| 87 | |
| 88 | private static final class PathByteSource extends |
| 89 | ByteSource |
no outgoing calls