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

Method read

guava/src/com/google/common/io/MoreFiles.java:160–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 }
159
160 @Override
161 public byte[] read() throws IOException {
162 try (SeekableByteChannel channel = Files.newByteChannel(path, options)) {
163 return ByteStreams.toByteArray(Channels.newInputStream(channel), channel.size());
164 }
165 }
166
167 @Override
168 public CharSource asCharSource(Charset charset) {

Callers

nothing calls this directly

Calls 2

toByteArrayMethod · 0.95
sizeMethod · 0.65

Tested by

no test coverage detected