JakeWharton / DiskLruCache

Java implementation of a Disk-based LRU cache which specifically targets Android compatibility.
http://jakewharton.github.io/DiskLruCache
Apache License 2.0
5.79k stars 1.18k forks source link

Add Buffersize in BufferedInputStream constructor #12

Closed palamccc closed 12 years ago

palamccc commented 12 years ago

This is a minor, feature request. While creating BufferedInputStream by its constructor, buffer size argument is missing. Because of that, android prints out following warning in logs. When i cache lot of images, following warning is filling up my log window. Please add buffer size argument to the constructor.

08-22 08:55:07.558: I/global(1158): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
swankjesse commented 12 years ago

Thankfully current versions of Android don't have that annoying warning!