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

Method read

corpus/java/training/guava/io/Files.java:141–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 }
140
141 @Override
142 public byte[] read() throws IOException {
143 Closer closer = Closer.create();
144 try {
145 FileInputStream in = closer.register(openStream());
146 return readFile(in, in.getChannel().size());
147 } catch (Throwable e) {
148 throw closer.rethrow(e);
149 } finally {
150 closer.close();
151 }
152 }
153
154 @Override
155 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
rethrowMethod · 0.95
closeMethod · 0.95
sizeMethod · 0.65
readFileMethod · 0.45

Tested by

no test coverage detected