2003/12/22 05:14:37
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:43:10 +0000 (07:43 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:43:10 +0000 (07:43 +0000)
darcs-hash:20040130074310-2ba56-bfddf2d93f9f8db1f1624e88754772ca6f0e5c67.gz

src/org/xwt/util/CachedInputStream.java

index cd85563..2056a73 100644 (file)
@@ -28,8 +28,6 @@ public class CachedInputStream {
         this.diskCache = diskCache;
     }
     public InputStream getInputStream() throws IOException {
-        System.out.println("diskCache == " + diskCache);
-        System.out.println("diskCache.exists() == " + diskCache.exists());
         if (diskCache != null && diskCache.exists()) return new FileInputStream(diskCache);
         return new SubStream();
     }
@@ -51,7 +49,7 @@ public class CachedInputStream {
             // FIXME: probably a race here
             if (diskCache != null && !diskCache.exists())
                 try {
-                    File cacheFile = new File(diskCache + ".tmp");
+                    File cacheFile = new File(diskCache + ".incomplete");
                     FileOutputStream cacheFileStream = new FileOutputStream(cacheFile);
                     cacheFileStream.write(cache, 0, size);
                     cacheFileStream.close();