Ignore:
Timestamp:
06/16/11 14:16:36 (13 years ago)
Author:
sherbold
Message:
  • refactoring
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/windows/LogPreprocessor.java

    r52 r74  
    1010import org.apache.commons.codec.binary.Base64; 
    1111 
     12import de.ugoe.cs.util.FileTools; 
    1213import de.ugoe.cs.util.StringTools; 
    1314import de.ugoe.cs.util.console.Console; 
     
    6566        private void processFile(String source, OutputStreamWriter targetFile) 
    6667                        throws FileNotFoundException, IOException { 
    67                 File f = new File(source); 
    68                 FileReader reader = new FileReader(f); 
    69                 char[] buffer = new char[(int) f.length()]; 
    70                 reader.read(buffer); 
    71                 reader.close(); 
    72                 String[] lines = (new String(buffer)).split("\n"); 
     68                String[] lines = FileTools.getLinesFromFile(source, false); 
    7369                String incompleteLine = ""; 
    7470                // Open source and read line by line 
Note: See TracChangeset for help on using the changeset viewer.