37 |
|
|
38 |
public Version load() throws IOException { |
public Version load() throws IOException { |
39 |
if(current == null) return emptyVersion; |
if(current == null) return emptyVersion; |
40 |
|
return load(current.getTarget()); |
41 |
|
} |
42 |
|
|
43 |
Block block = pool.get(current.getTarget()); |
public Version load(BlockId id) throws IOException { |
44 |
|
Block block = pool.get(id); |
45 |
InputStream is = block.getInputStream(); |
InputStream is = block.getInputStream(); |
46 |
Version v = format.readVersion(is); |
Version v = format.readVersion(is); |
47 |
is.close(); |
is.close(); |