52 |
headerLength = baos.size(); |
headerLength = baos.size(); |
53 |
} |
} |
54 |
public Block getBlock() { return block; } |
public Block getBlock() { return block; } |
55 |
public Header822 getHeader() { return null; } |
public Header822 getHeader() { return header; } |
56 |
public void close() throws IOException { |
public void close() throws IOException { |
57 |
block = new TransientBlock(baos.toByteArray(), |
block = new TransientBlock(baos.toByteArray(), |
58 |
header, headerLength); |
header, headerLength); |
76 |
id = BlockId.getIdForData(bytes); |
id = BlockId.getIdForData(bytes); |
77 |
} |
} |
78 |
public BlockId getId() { return id; } |
public BlockId getId() { return id; } |
79 |
public StormPool getPool() { return null; } |
public StormPool getPool() { return TransientPool.this; } |
80 |
public Header822 getHeader() { return header; } |
public Header822 getHeader() { return header; } |
81 |
public InputStream getInputStream() { |
public InputStream getInputStream() { |
82 |
return new ByteArrayInputStream(bytes, headerLength, |
return new ByteArrayInputStream(bytes, headerLength, |