StreamAlgorith
240241242243244245246247248249250
(DefaultReadTask)selectorThread.getReadTask(key); readTask.setByteBuffer(byteBuffer); readTask.setBytesAvailable(true); // Re-use the same Thread. readTask.doTask(); } else { byteBuffer.flip(); reader = new CometReader(); reader.setNRead(nRead);