/[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.26 by benja, Sun Jan 19 00:55:59 2003 UTC revision 1.27 by benja, Sun Jan 19 01:08:51 2003 UTC
# Line 47  public class TransientPool extends Abstr Line 47  public class TransientPool extends Abstr
47              super(new ByteArrayOutputStream(), header);              super(new ByteArrayOutputStream(), header);
48          }          }
49    
50          public void close() throws IOException {          public Block makeBlock() throws IOException {
             if(closed) return;  
             closed = true;  
   
51              ByteArrayOutputStream baos = (ByteArrayOutputStream)out;              ByteArrayOutputStream baos = (ByteArrayOutputStream)out;
52              block = new TransientBlock(makeIdFromDigest(),              block = new TransientBlock(makeIdFromDigest(),
53                                         baos.toByteArray(), header);                                         baos.toByteArray(), header);
54              blocks.put(block.getId(), block);              blocks.put(block.getId(), block);
55    
56              added(block);              added(block);
57                return block;
58          }          }
59      }      }
60    

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

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