code: private List<Route> load(InputStream inputStream) throws ParseException, IOException {
  		int line = 0; // reset line positioning
  		List<Route> routes = new ArrayList<Route>(); // this is what we will fill and return
  
  		BufferedReader in = null;
  		try {
  			in = new BufferedReader(new InputStreamReader(inputStream));
  
  			String input;
  			while ( (input = in.readLine()) != null ) {
  				line++;
  
  				input = input.trim();
  
  				// only parse line if it is not empty and not a comment
  				if (!input.equals("") && !input.startsWith("#")) {
  					Route route = parse(input, line);
  					routes.add(route);
  				}
  			}
  
  		} finally {
  			closeResource(in);
  		}
  
  		return routes;
  	}
docs: Helper method. Loads the routes from the <code>inputStream</code>.
  
  @param inputStream
  
  @return
  @throws ParseException
  @throws IOException