byteBuffer.limit(limit);
byteBuffer.position(position);
// Get notification once the task has completed.
readTask.addTaskListener(this);
readTask.execute();
} else {
fireTaskEvent(taskEvent);
}
} else {
// Failed to read the URI. Close the connections.