/[storm]/storm/org/nongnu/storm/impl/DirDB.java
ViewVC logotype

Diff of /storm/org/nongnu/storm/impl/DirDB.java

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

revision 1.4 by benja, Sat Apr 19 12:20:30 2003 UTC revision 1.5 by benja, Thu May 22 00:14:08 2003 UTC
# Line 137  public class DirDB implements IndexedPoo Line 137  public class DirDB implements IndexedPoo
137          w.write(m.value);          w.write(m.value);
138          w.write('\n');          w.write('\n');
139          w.close();          w.close();
140        }
141    
142        public void addIndexed(BlockId id) throws IOException {
143            if(getIndexed().contains(id))
144                return;
145    
146          path = new File(dbDir, "indexed_blocks").getPath();          String path = new File(dbDir, "indexed_blocks").getPath();
147          os = new FileOutputStream(path, true);          OutputStream os = new FileOutputStream(path, true);
148          w = new OutputStreamWriter(os, "UTF-8");          Writer w = new OutputStreamWriter(os, "UTF-8");
149          w.write(m.block.getURI());          w.write(id.getURI());
150          w.write('\n');          w.write('\n');
151          w.close();          w.close();
152      }      }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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