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

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

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

revision 1.17 by benja, Mon Jan 13 23:21:44 2003 UTC revision 1.18 by benja, Mon Jan 13 23:47:17 2003 UTC
# Line 108  public class DirPool extends AbstractLoc Line 108  public class DirPool extends AbstractLoc
108          protected File dbDir;          protected File dbDir;
109    
110          protected DirDB(String indexTypeURI) throws IOException {          protected DirDB(String indexTypeURI) throws IOException {
111                if(dir == null) throw new Error("Directory not initialized");
112                
113              byte[] ascii = indexTypeURI.getBytes("US-ASCII");              byte[] ascii = indexTypeURI.getBytes("US-ASCII");
114              String hex = HexUtil.byteArrToHex(ascii);              String hex = HexUtil.byteArrToHex(ascii);
115              dbDir = new File(dir, "idx_"+hex);              dbDir = new File(dir, "idx_"+hex);
# Line 157  public class DirPool extends AbstractLoc Line 159  public class DirPool extends AbstractLoc
159              os.write((byte)'\n');              os.write((byte)'\n');
160              os.close();              os.close();
161          }          }
162    
163            public String toString() {
164                return "<DirDB '"+dbDir+"'>";
165            }
166      }      }
167    
168      /** Create a new DirPool.      /** Create a new DirPool.

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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