We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15779d5 + 7cee570 commit 2719c4eCopy full SHA for 2719c4e
src/com/android/volley/toolbox/DiskBasedCache.java
@@ -21,6 +21,7 @@
21
import com.android.volley.Cache;
22
import com.android.volley.VolleyLog;
23
24
+import java.io.BufferedInputStream;
25
import java.io.EOFException;
26
import java.io.File;
27
import java.io.FileInputStream;
@@ -149,9 +150,9 @@ public synchronized void initialize() {
149
150
return;
151
}
152
for (File file : files) {
- FileInputStream fis = null;
153
+ BufferedInputStream fis = null;
154
try {
- fis = new FileInputStream(file);
155
+ fis = new BufferedInputStream(new FileInputStream(file));
156
CacheHeader entry = CacheHeader.readHeader(fis);
157
entry.size = file.length();
158
putEntry(entry.key, entry);
0 commit comments