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

Method clear

java/org/apache/jasper/runtime/JspWriterImpl.java:126–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124 }
125
126 @Override
127 public final void clear() throws IOException {
128 if ((bufferSize == 0) && (out != null)) {
129 // clear() is illegal after any unbuffered output (JSP.5.5)
130 throw new IllegalStateException(Localizer.getMessage("jsp.error.ise_on_clear"));
131 }
132 if (flushed) {
133 throw new IOException(Localizer.getMessage("jsp.error.attempt_to_clear_flushed_buffer"));
134 }
135 ensureOpen();
136 nextChar = 0;
137 }
138
139 @Override
140 public void clearBuffer() throws IOException {

Callers

nothing calls this directly

Calls 2

getMessageMethod · 0.95
ensureOpenMethod · 0.95

Tested by

no test coverage detected