JakeWharton/DiskLruCache — pull request #25 by scompt (2012-10-29 07:51:16+00:00)
Title: Add getLength method to Snapshot

This pull request adds a getLength method to the Snapshot class. This lets you fetch the length of the associated stream without having to do something crazy like read the whole this. This is useful for me in the case where I'm sending the stream to a client and I need to send a `Content-Length` header before the data. The tests have been updated as well.