Changeset 24859
- Timestamp:
- 2011-12-06T12:00:15+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSFile.java
r24720 r24859 30 30 import java.lang.ClassLoader; // to find files on the class path 31 31 import java.net.URL; 32 import java.nio.channels.FileChannel; 32 33 import java.util.ArrayList; 33 34 … … 219 220 } 220 221 221 222 222 static public String interfaceStylesheetFile(String gsdl3_home, String interface_name, String filename) 223 223 { … … 292 292 return null; 293 293 } 294 294 295 295 static public ArrayList<File> getStylesheetFiles(String gsdl3_home, String site_name, String collection, String interface_name, ArrayList base_interfaces, String filename) 296 296 { … … 511 511 FileInputStream in = new FileInputStream(input[i]); 512 512 FileOutputStream out = new FileOutputStream(output); 513 int value = 0; 514 while ((value = in.read()) != -1) 515 { 516 out.write(value); 517 } 513 514 FileChannel inC = in.getChannel(); 515 FileChannel outC = out.getChannel(); 516 517 System.err.println(inC.transferTo(0, inC.size(), outC)); 518 518 519 in.close(); 519 520 out.close(); 521 520 522 // Delete file 521 523 input[i].delete();
Note:
See TracChangeset
for help on using the changeset viewer.