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

Method write

output/java_guava/1.4.17/CharSink.java:98–110  ·  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

96
97
98 public void write(CharSequence charSequence) throws IOException {
99 checkNotNull(charSequence);
100 Closer closer = Closer.create();
101 try {
102 Writer out = closer.register(openStream());
103 out.append(charSequence);
104 out.flush(); // https://code.google.com/p/guava-libraries/issues/detail?id=1330
105 } catch (Throwable e) {
106 throw closer.rethrow(e);
107 } finally {
108 closer.close();
109 }
110 }
111
112 /**
113 * 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