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

Method write

output/java_guava/1.4.17/ByteSink.java:107–119  ·  view source on GitHub ↗

Writes all the given bytes to this sink. @throws IOException if an I/O occurs in the process of writing to this sink

(byte[] bytes)

Source from the content-addressed store, hash-verified

105
106
107 public void write(byte[] bytes) throws IOException {
108 checkNotNull(bytes);
109 Closer closer = Closer.create();
110 try {
111 OutputStream out = closer.register(openStream());
112 out.write(bytes);
113 out.flush(); // https://code.google.com/p/guava-libraries/issues/detail?id=1330
114 } catch (Throwable e) {
115 throw closer.rethrow(e);
116 } finally {
117 closer.close();
118 }
119 }
120
121 /**
122 * Writes all the bytes from the given {@code InputStream} to this sink. Does not close

Callers

nothing calls this directly

Calls 8

createMethod · 0.95
registerMethod · 0.95
openStreamMethod · 0.95
rethrowMethod · 0.95
closeMethod · 0.95
writeMethod · 0.65
checkNotNullMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected