public static void scan(InputStream source, InputStream format) throws IOException{    	
    	Scanner scanner = new Scanner(source);
    	SimpleFormat sf = JAXB.unmarshal(format, SimpleFormat.class);    	    	    	    	    
    	ColumnIndexParser parser = new ColumnIndexParser(sf);    	
    	Integer r = 0;
    	while (scanner.hasNext()) {
    		r++;
    	    String line = scanner.nextLine();
    	    // Parse line and return a Map of column index values pairs
    	    Map<Integer,Object> columns = parser.parse(line);    	    
    	    for(Integer col: columns.keySet()){
    	    	System.out.println("row["+ r +"," + col + "]:=" + columns.get(col));
    	    }    	        	    
    	} 
    	scanner.close();    	
    }