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

Method write

java/org/apache/jasper/runtime/JspWriterImpl.java:187–203  ·  view source on GitHub ↗
(int c)

Source from the content-addressed store, hash-verified

185
186
187 @Override
188 public void write(int c) throws IOException {
189 ensureOpen();
190 if (bufferSize == 0) {
191 initOut();
192 out.write(c);
193 } else {
194 if (nextChar >= bufferSize) {
195 if (autoFlush) {
196 flushBuffer();
197 } else {
198 bufferOverflow();
199 }
200 }
201 cb[nextChar++] = (char) c;
202 }
203 }
204
205 /**
206 * Our own little min method, to avoid loading java.lang.Math if we've run out of file descriptors, and we're trying

Callers 2

newLineMethod · 0.95
printMethod · 0.95

Calls 7

ensureOpenMethod · 0.95
initOutMethod · 0.95
flushBufferMethod · 0.95
bufferOverflowMethod · 0.95
minMethod · 0.95
getCharsMethod · 0.80
writeMethod · 0.65

Tested by

no test coverage detected