if (selector != null) {
for (Iterator i = selector.selectedKeys().iterator(); i.hasNext();) {
SelectionKey key = (SelectionKey) i.next();
int ioIndex = (Integer) key.attachment();
try {
int interestAndReady = key.interestOps() & key.readyOps();
if (readArray != null && (interestAndReady & (SelectionKey.OP_READ | SelectionKey.OP_ACCEPT | SelectionKey.OP_CONNECT)) != 0) {
getReadResults().append(readArray.eltOk(ioIndex));
if (pendingReads != null) {
pendingReads[ioIndex] = false;
}