MCPcopy Index your code
hub / github.com/antlr/codebuff / asByteSource

Method asByteSource

output/java_guava/1.4.16/Files.java:112–114  ·  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

110
111
112 public static ByteSource asByteSource(File file) {
113 return new FileByteSource(file);
114 }
115
116 private static final class FileByteSource extends ByteSource {
117 private final File file;

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