MCPcopy Create free account
hub / github.com/apache/thrift / writeTo

Method writeTo

tutorial/js/src/Httpd.java:125–129  ·  view source on GitHub ↗
(final OutputStream outstream)

Source from the content-addressed store, hash-verified

123 EntityTemplate body = new EntityTemplate(new ContentProducer() {
124
125 public void writeTo(final OutputStream outstream) throws IOException {
126 OutputStreamWriter writer = new OutputStreamWriter(outstream, "UTF-8");
127 writer.write(output);
128 writer.flush();
129 }
130
131 });
132 body.setContentType("text/html; charset=UTF-8");

Callers

nothing calls this directly

Calls 3

writeMethod · 0.65
flushMethod · 0.45
getPathMethod · 0.45

Tested by

no test coverage detected