MCPcopy Index your code
hub / github.com/benfry/processing4 / sendFile

Method sendFile

app/src/processing/app/WebServer.java:265–272  ·  view source on GitHub ↗
(InputStream is, PrintStream ps)

Source from the content-addressed store, hash-verified

263 }
264
265 void sendFile(InputStream is, PrintStream ps) throws IOException {
266 try (is) {
267 int n;
268 while ((n = is.read(buffer)) > 0) {
269 ps.write(buffer, 0, n);
270 }
271 }
272 }
273 }
274
275

Callers 1

handleClientMethod · 0.95

Calls 2

writeMethod · 0.65
readMethod · 0.45

Tested by

no test coverage detected