74 |
entry.distributor = "BK"; |
entry.distributor = "BK"; |
75 |
|
|
76 |
String[] parts = line.split(";"); |
String[] parts = line.split(";"); |
77 |
|
|
78 |
|
if (parts.length != 13) { |
79 |
|
throw new IOException("Not enough fields in CSV file. Found " + parts.length + ", expected 13"); |
80 |
|
} |
81 |
|
|
82 |
entry.postnr = Short.parseShort( parts[0]); |
entry.postnr = Short.parseShort( parts[0]); |
83 |
entry.vejnavn = parts[1].replace("\"", ""); |
entry.vejnavn = parts[1].replace("\"", ""); |
84 |
entry.husnr = Short.parseShort( parts[2] ); |
entry.husnr = Short.parseShort( parts[2] ); |