Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1.  
  2. package javaapplication27;
  3.  
  4. import java.io.File;
  5.  
  6. import java.util.ArrayList;
  7. import java.util.List;
  8.  
  9.  
  10.  
  11. public class GeodataTxtParser extends TxtParser {
  12.     static int id = 1;
  13.  
  14.     public GeodataTxtParser(File file) {
  15.         super(file);
  16.     }
  17.    
  18.     public  List parse() {
  19.      
  20.         List<String> lines = super.parse();
  21.         List<String []> results = new ArrayList<String []>();
  22.         String[] data = null;
  23.  
  24.        
  25.         for(String line: lines){
  26.             data = line.split(" ");
  27.            
  28.        
  29.     results.add(line.split(" "));
  30.            
  31.         }
  32.        
  33.     return results;
  34.  
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement