- Timestamp:
- 2006-01-23T19:19:49+01:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/io/OsmReader.java
r44 r45 189 189 StringTokenizer st = new StringTokenizer(propStr, ";"); 190 190 while (st.hasMoreTokens()) { 191 StringTokenizer t = new StringTokenizer(st.nextToken(), "="); 192 if (t.countTokens() > 1) 193 data.keys.put(Key.get(t.nextToken()), t.nextToken()); 191 String next = st.nextToken(); 192 System.out.println(next); 193 if (next.trim().equals("")) 194 continue; 195 int equalPos = next.indexOf('='); 196 if (equalPos == -1) 197 data.keys.put(Key.get(next), ""); 194 198 else { 195 String token = t.nextToken(); 196 if (!" ".equals(token)) 197 data.keys.put(Key.get(token), ""); 199 String keyStr = next.substring(0, equalPos); 200 data.keys.put(Key.get(keyStr), next.substring(equalPos+1)); 198 201 } 199 202 }
Note:
See TracChangeset
for help on using the changeset viewer.