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

Method read

guava/src/com/google/common/io/Files.java:151–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 }
150
151 @Override
152 public byte[] read() throws IOException {
153 Closer closer = Closer.create();
154 try {
155 FileInputStream in = closer.register(openStream());
156 return ByteStreams.toByteArray(in, in.getChannel().size());
157 } catch (Throwable e) {
158 throw closer.rethrow(e);
159 } finally {
160 closer.close();
161 }
162 }
163
164 @Override
165 public String toString() {

Callers 3

toByteArrayMethod · 0.45
toStringMethod · 0.45
readBytesMethod · 0.45

Calls 7

createMethod · 0.95
registerMethod · 0.95
openStreamMethod · 0.95
toByteArrayMethod · 0.95
rethrowMethod · 0.95
closeMethod · 0.95
sizeMethod · 0.65

Tested by

no test coverage detected