Read data from the input buffer and put it into ApplicationBufferHandler. The buffer is owned by the protocol implementation - it will be reused on the next read. The Adapter must either process the data in place or copy it to a separate buffer if it needs to hold it. In most cases this is done duri
(ApplicationBufferHandler handler)
| 1007 | * @throws IOException If an I/O error occurs during the copy |
| 1008 | */ |
| 1009 | public int doRead(ApplicationBufferHandler handler) throws IOException { |
| 1010 | if (getBytesRead() == 0 && !response.isCommitted()) { |
| 1011 | action(ActionCode.ACK, ContinueResponseTiming.ON_REQUEST_BODY_READ); |
| 1012 | } |
| 1013 | |
| 1014 | int n = inputBuffer.doRead(handler); |
| 1015 | if (n > 0) { |
| 1016 | bytesRead += n; |
| 1017 | } |
| 1018 | return n; |
| 1019 | } |
| 1020 | |
| 1021 | |
| 1022 | // -------------------- Error tracking -------------------- |
nothing calls this directly
no test coverage detected