MCPcopy Index your code
hub / github.com/apache/tomcat / append

Method append

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

Add data to the buffer. @param src Bytes array @param off Offset @param len Length @throws IOException Writing overflow data to the output channel failed

(byte[] src, int off, int len)

Source from the content-addressed store, hash-verified

720 * @throws IOException Writing overflow data to the output channel failed
721 */
722 public void append(byte[] src, int off, int len) throws IOException {
723 if (bb.remaining() == 0) {
724 appendByteArray(src, off, len);
725 } else {
726 int n = transfer(src, off, len, bb);
727 len = len - n;
728 off = off + n;
729 if (len > 0 && isFull(bb)) {
730 flushByteBuffer();
731 appendByteArray(src, off, len);
732 }
733 }
734 }
735
736 /**
737 * Add data to the buffer.

Callers 15

writeBytesMethod · 0.95
writeMethod · 0.95
getMBeanKeyPropertiesMethod · 0.45
toStringMethod · 0.45
getConfigBaseFileMethod · 0.45
getNamingContextNameMethod · 0.45
logDebugMethod · 0.45
awaitMethod · 0.45
loadMethod · 0.45

Calls 11

appendByteArrayMethod · 0.95
transferMethod · 0.95
isFullMethod · 0.95
flushByteBufferMethod · 0.95
flushCharBufferMethod · 0.95
realWriteCharsMethod · 0.95
appendByteBufferMethod · 0.95
remainingMethod · 0.80
hasRemainingMethod · 0.80
limitMethod · 0.45
wrapMethod · 0.45

Tested by

no test coverage detected