projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
018db89
)
2003/12/22 05:14:37
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 07:43:10 +0000
(07:43 +0000)
committer
megacz
<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
patch
|
blob
|
history
diff --git
a/src/org/xwt/util/CachedInputStream.java
b/src/org/xwt/util/CachedInputStream.java
index
cd85563
..
2056a73
100644
(file)
--- a/
src/org/xwt/util/CachedInputStream.java
+++ b/
src/org/xwt/util/CachedInputStream.java
@@
-28,8
+28,6
@@
public class CachedInputStream {
this.diskCache = diskCache;
}
public InputStream getInputStream() throws IOException {
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();
}
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 {
// 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();
FileOutputStream cacheFileStream = new FileOutputStream(cacheFile);
cacheFileStream.write(cache, 0, size);
cacheFileStream.close();