MCPcopy Create free account
hub / github.com/antlr/codebuff / asByteSource

Method asByteSource

corpus/java/training/guava/io/Files.java:107–109  ·  view source on GitHub ↗

Returns a new ByteSource for reading bytes from the given file. @since 14.0

(File file)

Source from the content-addressed store, hash-verified

105 * @since 14.0
106 */
107 public static ByteSource asByteSource(File file) {
108 return new FileByteSource(file);
109 }
110
111 private static final class FileByteSource extends ByteSource {
112

Callers 6

asCharSourceMethod · 0.95
toByteArrayMethod · 0.95
copyMethod · 0.95
equalMethod · 0.95
readBytesMethod · 0.95
hashMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected