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

Method writeByte

java/org/apache/catalina/connector/OutputBuffer.java:417–433  ·  view source on GitHub ↗

Writes a single byte to the output buffer. @param b The byte to write @throws IOException if an I/O error occurs

(int b)

Source from the content-addressed store, hash-verified

415 * @throws IOException if an I/O error occurs
416 */
417 public void writeByte(int b) throws IOException {
418
419 if (closed) {
420 throw new IOException(sm.getString("outputBuffer.closed"));
421 }
422
423 if (suspended) {
424 return;
425 }
426
427 if (isFull(bb)) {
428 flushByteBuffer();
429 }
430
431 transfer((byte) b, bb);
432 updateBytesWritten(1);
433 }
434
435
436 private void updateBytesWritten(int increment) throws IOException {

Callers 1

writeMethod · 0.80

Calls 5

isFullMethod · 0.95
flushByteBufferMethod · 0.95
transferMethod · 0.95
updateBytesWrittenMethod · 0.95
getStringMethod · 0.65

Tested by

no test coverage detected