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

Method write

corpus/java/training/guava/io/CharSink.java:91–104  ·  view source on GitHub ↗

Writes the given character sequence to this sink. @throws IOException if an I/O error in the process of writing to this sink

(CharSequence charSequence)

Source from the content-addressed store, hash-verified

89 * @throws IOException if an I/O error in the process of writing to this sink
90 */
91 public void write(CharSequence charSequence) throws IOException {
92 checkNotNull(charSequence);
93
94 Closer closer = Closer.create();
95 try {
96 Writer out = closer.register(openStream());
97 out.append(charSequence);
98 out.flush(); // https://code.google.com/p/guava-libraries/issues/detail?id=1330
99 } catch (Throwable e) {
100 throw closer.rethrow(e);
101 } finally {
102 closer.close();
103 }
104 }
105
106 /**
107 * Writes the given lines of text to this sink with each line (including the last) terminated with

Callers

nothing calls this directly

Calls 8

createMethod · 0.95
registerMethod · 0.95
openStreamMethod · 0.95
rethrowMethod · 0.95
closeMethod · 0.95
checkNotNullMethod · 0.45
appendMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected