String oneTerm = br.readLine();
if (oneTerm == null) {
return null;
}
while (oneTerm != null) {
RemoteDocList list = new RemoteDocList();
oneTerm = oneTerm.trim();
int i = oneTerm.indexOf("[");
token = new StringTokenizer(oneTerm.substring(0, i));
list.term = token.nextToken();
list.idf = Float.parseFloat(token.nextToken());
oneTerm = oneTerm.substring(i + 1, oneTerm.length() - 1);
token = new StringTokenizer(oneTerm, ":");
RemoteOneNodeList nodeList = new RemoteOneNodeList();
while (token.hasMoreTokens()) {
String oneNodeList = token.nextToken();
i = oneNodeList.indexOf("<");
String nodeid = oneNodeList.substring(0, i);
nodeList.nodeid = nodeid;
token = new StringTokenizer(oneNodeList.substring(i + 1,
oneNodeList.length() - 1), "|");
while (token.hasMoreTokens()) {
String oneDoc = token.nextToken();
oneDoc = oneDoc.trim();
StringTokenizer id_token = new StringTokenizer(oneDoc,
"*");
RemoteDoc doc = new RemoteDoc(Integer.parseInt(id_token
.nextToken()), Float.parseFloat(id_token
.nextToken()));
nodeList.add(doc);
}
list.add(nodeList);
}
remoteInvertedIndex.add(list);
oneTerm = br.readLine();
}
} catch (FileNotFoundException e) {