Author: batosai
Date: 2008-06-22 14:58:25 +0000 (Sun, 22 Jun 2008)
New Revision: 20623
Modified:
trunk/apps/WoT/src/plugins/WoT/Identity.java
trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java
Log:
Small cleanup and debugging strings.
Modified: trunk/apps/WoT/src/plugins/WoT/Identity.java
===================================================================
--- trunk/apps/WoT/src/plugins/WoT/Identity.java 2008-06-22 12:09:25 UTC
(rev 20622)
+++ trunk/apps/WoT/src/plugins/WoT/Identity.java 2008-06-22 14:58:25 UTC
(rev 20623)
@@ -141,7 +141,7 @@
}
// TODO Do the actual parsing
-
+ System.out.println(rawName);
}
}
}
Modified: trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java
===================================================================
--- trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java 2008-06-22 12:09:25 UTC
(rev 20622)
+++ trunk/apps/WoT/src/plugins/WoT/IdentityFetcher.java 2008-06-22 14:58:25 UTC
(rev 20623)
@@ -59,6 +59,7 @@
private boolean fileFetched;
private String identifier = "WoTfetcher";
+ File tempfile = new File("tempfile");
/**
* Creates the IdentityInserter
@@ -78,7 +79,6 @@
this.wait();
}
if(fileFetched) {
- File tempfile = new File("tempfile");
identity.fromXML(new FileInputStream(tempfile));
tempfile.delete();
}
@@ -211,7 +211,7 @@
// TODO Clean this when the high-level API comes out !
try {
final int bufferSize = 1000;
- FileOutputStream fout = new FileOutputStream(new
File("tempfile"));
+ FileOutputStream fout = new
FileOutputStream(tempfile);
byte[] buffer = new byte[bufferSize];
int readCount = 0;
while ((readCount =
allData.getPayloadInputStream().read(buffer)) != -1) {
@@ -285,6 +285,7 @@
notify();
}
}
+ // TODO Re-launch the request if getFailed contains a
RedirectURI. That means we missed an edition but the data is available.
}
/**