final int fetchedLength;
try {
ois = new ObjectInputStream(is);
fetchedLength = ois.readInt();
} catch (IOException ioe) {
throw new XQRTException("failed to deserialize the fetched items", ioe);
}
try {
for(int i = 0; i < fetchedLength; i++) {
Object ro = ois.readObject();
Item fetched = (Item) ro;
_fetchedQueue.offer(fetched);
}
} catch (IOException ioe) {
throw new XQRTException("failed to deserialize the fetched items", ioe);
} catch (ClassNotFoundException cnf) {
throw new XQRTException("failed to deserialize the fetched items", cnf);
}
return fetchedLength;
}