--- /dev/null
+Change log file for jMoule
+
+version 0.3 (2004-02-29)
+ * crash fix when file has no name : use its ID
+
+version 0.2 (2003-06-08)
+ * More results for the searches
+ * ETA is now displayed (time remaining in hours)
+ * A statistics tab was added
+ * DonkeyCore class is now commented
+
+version 0.1 (2003-04-06)
+ * initial release
debug("FileInformation: ");\r
id=new Long(readLong()); // id\r
readLong(); // network\r
- n=readInt();\r
- readString();\r
- fileInfo.add(readString());\r
- for (i=0;i<n-2;i++) debug(readString()); // names\r
- //for (i=0;i<n;i++) debug(readString()); // names\r
+ n=readInt();
+ if (n==0)
+ {
+ // no name, this should not happen...
+ fileInfo.add("N/A");
+ }
+ else if (n==1)
+ {
+ // no name but the ID string\r
+ fileInfo.add(readString());
+ }
+ else
+ {
+ // skip the ID
+ readString();
+ // and get the first name\r
+ fileInfo.add(readString());\r
+ for (i=0;i<n-2;i++) debug(readString()); // names\r
+ //for (i=0;i<n;i++) debug(readString()); // names
+ }\r
for (i=0;i<16;i++) readByte(); // hash\r
//readLong(); // size\r
//readLong(); // downloaded\r