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.
1 parent 564c635 commit eaba1abCopy full SHA for eaba1ab
src/main/java/com/android/volley/toolbox/DiskBasedCache.java
@@ -114,7 +114,7 @@ public synchronized Entry get(String key) {
114
File file = getFileForKey(key);
115
CountingInputStream cis = null;
116
try {
117
- cis = new CountingInputStream(new FileInputStream(file));
+ cis = new CountingInputStream(new BufferedInputStream(new FileInputStream(file)));
118
CacheHeader.readHeader(cis); // eat header
119
byte[] data = streamToBytes(cis, (int) (file.length() - cis.bytesRead));
120
return entry.toCacheEntry(data);
0 commit comments