MCPcopy Create free account
hub / github.com/apache/tomcat / getBytesWritten

Method getBytesWritten

java/org/apache/catalina/connector/Response.java:246–255  ·  view source on GitHub ↗

Return the number of bytes actually written to the socket. This includes chunking, compression, etc. but excludes headers. @param flush if true will perform a buffer flush first @return the number of bytes actually written to the socket

(boolean flush)

Source from the content-addressed store, hash-verified

244 * @return the number of bytes actually written to the socket
245 */
246 public long getBytesWritten(boolean flush) {
247 if (flush) {
248 try {
249 outputBuffer.flush();
250 } catch (IOException ioe) {
251 // Ignore - the client has probably closed the connection
252 }
253 }
254 return getCoyoteResponse().getBytesWritten(flush);
255 }
256
257 /**
258 * Set the application commit flag.

Callers

nothing calls this directly

Calls 3

getCoyoteResponseMethod · 0.95
flushMethod · 0.65
getBytesWrittenMethod · 0.65

Tested by

no test coverage detected