Use BufferedInputStream in DiskBlockStore. Fixes issue 14.

This commit is contained in:
Mike Hearn
2011-04-20 16:39:32 +00:00
parent aff7fda17d
commit b792d40653

View File

@@ -71,7 +71,7 @@ public class DiskBlockStore implements BlockStore {
private void load(File file) throws IOException, BlockStoreException {
LOG("Reading block store from " + file.getAbsolutePath());
FileInputStream input = new FileInputStream(file);
InputStream input = new BufferedInputStream(new FileInputStream(file));
// Read a version byte.
int version = input.read();
if (version == -1) {