MCPcopy
hub / github.com/google/guava / asByteSource

Method asByteSource

android/guava/src/com/google/common/io/Files.java:115–117  ·  view source on GitHub ↗

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

(File file)

Source from the content-addressed store, hash-verified

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

Callers 11

asCharSourceMethod · 0.95
toByteArrayMethod · 0.95
copyMethod · 0.95
equalMethod · 0.95
readBytesMethod · 0.95
hashMethod · 0.95
testRoundTripSourcesMethod · 0.95
testToByteArrayMethod · 0.95
testEqualMethod · 0.95
createSourceMethod · 0.95
createSourceMethod · 0.45

Calls

no outgoing calls

Tested by 5

testRoundTripSourcesMethod · 0.76
testToByteArrayMethod · 0.76
testEqualMethod · 0.76
createSourceMethod · 0.76
createSourceMethod · 0.36