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

Method write

java/org/apache/jasper/runtime/BodyContentImpl.java:64–75  ·  view source on GitHub ↗
(int c)

Source from the content-addressed store, hash-verified

62 }
63
64 @Override
65 public void write(int c) throws IOException {
66 if (writer != null) {
67 writer.write(c);
68 } else {
69 ensureOpen();
70 if (nextChar >= bufferSize) {
71 reAllocBuff(1);
72 }
73 cb[nextChar++] = (char) c;
74 }
75 }
76
77 @Override
78 public void write(char[] cbuf, int off, int len) throws IOException {

Callers 2

newLineMethod · 0.95
printMethod · 0.95

Calls 5

ensureOpenMethod · 0.95
reAllocBuffMethod · 0.95
getCharsMethod · 0.80
lengthMethod · 0.80
writeMethod · 0.65

Tested by

no test coverage detected