Returns a new {@link ByteSource} for reading bytes from the given file. @since 14.0
(File file)
| 113 | * @since 14.0 |
| 114 | */ |
| 115 | public static ByteSource asByteSource(File file) { |
| 116 | return new FileByteSource(file); |
| 117 | } |
| 118 | |
| 119 | private static final class FileByteSource extends |
| 120 | ByteSource |
no outgoing calls