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

Method read

corpus/java/training/guava/io/ByteSource.java:283–293  ·  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

281 * @throws IOException if an I/O error occurs in the process of reading from this source
282 */
283 public byte[] read() throws IOException {
284 Closer closer = Closer.create();
285 try {
286 InputStream in = closer.register(openStream());
287 return ByteStreams.toByteArray(in);
288 } catch (Throwable e) {
289 throw closer.rethrow(e);
290 } finally {
291 closer.close();
292 }
293 }
294
295 /**
296 * Reads the contents of this byte source using the given {@code processor} to process bytes as

Callers 8

copyMethod · 0.45
exhaustMethod · 0.45
readUnsignedByteMethod · 0.45
readAndCheckByteMethod · 0.45
toByteArrayMethod · 0.45
toStringMethod · 0.45
isEmptyMethod · 0.45
readLineMethod · 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