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

Method read

output/java_guava/1.4.17/ByteSource.java:299–309  ·  view source on GitHub ↗

Reads the full contents of this byte source as a byte array. @throws IOException if an I/O error occurs in the process of reading from this source

()

Source from the content-addressed store, hash-verified

297
298
299 public byte[] read() throws IOException {
300 Closer closer = Closer.create();
301 try {
302 InputStream in = closer.register(openStream());
303 return ByteStreams.toByteArray(in);
304 } catch (Throwable e) {
305 throw closer.rethrow(e);
306 } finally {
307 closer.close();
308 }
309 }
310
311 /**
312 * Reads the contents of this byte source using the given {@code processor} to process bytes as

Callers 1

isEmptyMethod · 0.45

Calls 8

createMethod · 0.95
registerMethod · 0.95
openStreamMethod · 0.95
toByteArrayMethod · 0.95
rethrowMethod · 0.95
closeMethod · 0.95
readBytesMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected