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

Method readPostBodyFully

java/org/apache/catalina/connector/Request.java:3124–3133  ·  view source on GitHub ↗

Read post body into an array. @param body The bytes array in which the body will be read @param len The body length @throws IOException if an IO exception occurred or EOF is reached before the body has been fully read

(byte[] body, int len)

Source from the content-addressed store, hash-verified

3122 * @throws IOException if an IO exception occurred or EOF is reached before the body has been fully read
3123 */
3124 protected void readPostBodyFully(byte[] body, int len) throws IOException {
3125 int offset = 0;
3126 do {
3127 int inputLen = getStream().read(body, offset, len - offset);
3128 if (inputLen <= 0) {
3129 throw new EOFException();
3130 }
3131 offset += inputLen;
3132 } while ((len - offset) > 0);
3133 }
3134
3135
3136 /**

Callers 1

doParseParametersMethod · 0.95

Calls 2

getStreamMethod · 0.95
readMethod · 0.65

Tested by

no test coverage detected