/[gzz]/gzz/lava/gzz/storm/impl/TransientPool.java
ViewVC logotype

Diff of /gzz/lava/gzz/storm/impl/TransientPool.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by benja, Thu Nov 7 22:07:00 2002 UTC revision 1.11 by benja, Thu Nov 14 20:05:23 2002 UTC
# Line 52  public class TransientPool implements St Line 52  public class TransientPool implements St
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);
# Line 76  public class TransientPool implements St Line 76  public class TransientPool implements St
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,

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26