{"comment":{"url":"https://api.github.com/repos/edx/edx-app-android/comments/12494392","html_url":"https://github.com/edx/edx-app-android/commit/2eb9ea01227860e2574f9e4eb68fbdd0fd68a509#commitcomment-12494392","id":12494392,"user":{"login":"1zaman","id":4244109,"avatar_url":"https://avatars.githubusercontent.com/u/4244109?v=3","gravatar_id":"","url":"https://api.github.com/users/1zaman","html_url":"https://github.com/1zaman","followers_url":"https://api.github.com/users/1zaman/followers","following_url":"https://api.github.com/users/1zaman/following{/other_user}","gists_url":"https://api.github.com/users/1zaman/gists{/gist_id}","starred_url":"https://api.github.com/users/1zaman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1zaman/subscriptions","organizations_url":"https://api.github.com/users/1zaman/orgs","repos_url":"https://api.github.com/users/1zaman/repos","events_url":"https://api.github.com/users/1zaman/events{/privacy}","received_events_url":"https://api.github.com/users/1zaman/received_events","type":"User","site_admin":false},"position":25,"line":25,"path":"VideoLocker/src/main/java/org/edx/mobile/util/FileUtil.java","commit_id":"2eb9ea01227860e2574f9e4eb68fbdd0fd68a509","created_at":"2015-08-03T14:02:38Z","updated_at":"2015-08-03T14:02:38Z","body":"This implementation is wrong. The `available()` method in `InputStream` only returns the immediately available number of bytes that can be read. The proper method is to construct a loop on `read()` that ends when it returns -1."}}