()
| 303 | |
| 304 | |
| 305 | private boolean processData() throws IOException { |
| 306 | boolean result; |
| 307 | if (Util.isControl(opCode)) { |
| 308 | result = processDataControl(); |
| 309 | } else if (textMessage) { |
| 310 | if (textMsgHandler == null) { |
| 311 | result = swallowInput(); |
| 312 | } else { |
| 313 | result = processDataText(); |
| 314 | } |
| 315 | } else { |
| 316 | if (binaryMsgHandler == null) { |
| 317 | result = swallowInput(); |
| 318 | } else { |
| 319 | result = processDataBinary(); |
| 320 | } |
| 321 | } |
| 322 | if (result) { |
| 323 | updateStats(payloadLength); |
| 324 | } |
| 325 | checkRoomPayload(); |
| 326 | return result; |
| 327 | } |
| 328 | |
| 329 | |
| 330 | /** |
no test coverage detected