Changeset 382
- Timestamp:
- 07/26/10 01:54:18 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
kahina/trunk/src/org/kahina/core/KahinaInstance.java
r381 r382 221 221 monitor.increment(); 222 222 } 223 out.flush(); 223 224 FileUtilities.zipDirectory(directory, zipFile, monitor); 224 225 FileUtilities.deleteRecursively(directory); kahina/trunk/src/org/kahina/core/io/magazine/ObjectMagazine.java
r381 r382 173 173 { 174 174 Properties properties = readPropertiesFile(folder); 175 return new ObjectMagazine<S>(folder, Integer.parseInt(properties.getProperty("blockSize")), Long.parseLong(properties.getProperty("lowerBound")), Long.parseLong(properties175 return new ObjectMagazine<S>(folder, Integer.parseInt(properties.getProperty("blockSize")), Float.parseFloat(properties.getProperty("lowerBound")), Float.parseFloat(properties 176 176 .getProperty("upperBound")), folder.list().length); 177 177 } kahina/trunk/src/org/kahina/core/util/FileUtilities.java
r381 r382 21 21 public static void copy(File source, File destination) throws IOException 22 22 { 23 OutputStream out = n ull;23 OutputStream out = new BufferedOutputStream(new FileOutputStream(destination)); 24 24 try 25 25 { 26 out = new BufferedOutputStream(new FileOutputStream(destination));27 26 copy(source, out); 28 27 } catch (IOException e) … … 38 37 } 39 38 40 private static void copy(File source e, OutputStream out) throws IOException39 private static void copy(File source, OutputStream out) throws IOException 41 40 { 42 InputStream in = new BufferedInputStream(new FileInputStream(source e));41 InputStream in = new BufferedInputStream(new FileInputStream(source)); 43 42 try 44 43 { … … 125 124 out.putNextEntry(new ZipEntry(toZip.getCanonicalPath().substring(rootPathLength))); 126 125 copy(toZip, out); 126 out.closeEntry(); 127 127 } 128 128 }
