Revision 44445
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.csv/src/main/java/org/gvsig/fmap/dal/store/csv/CSVStoreProvider.java | ||
---|---|---|
522 | 522 |
} |
523 | 523 |
} |
524 | 524 |
int n = 0; |
525 |
this.name = args[n++];
|
|
525 |
this.name = StringUtils.trim(args[n++]);
|
|
526 | 526 |
if( n >= args.length ) { |
527 | 527 |
return true; |
528 | 528 |
} |
529 |
this.typename = args[n++];
|
|
529 |
this.typename = StringUtils.trim(args[n++]);
|
|
530 | 530 |
this.type = this.getType(this.typename); |
531 | 531 |
if ( this.type == DataTypes.INVALID ) { |
532 | 532 |
this.geomType = GeometryUtils.getGeometryType(this.typename); |
... | ... | |
558 | 558 |
this.size = 0; |
559 | 559 |
} |
560 | 560 |
while (n < args.length) { |
561 |
String option = args[n++].toLowerCase();
|
|
561 |
String option = StringUtils.trim(args[n++].toLowerCase());
|
|
562 | 562 |
switch (option) { |
563 | 563 |
case "size": |
564 | 564 |
try { |
... | ... | |
568 | 568 |
} |
569 | 569 |
break; |
570 | 570 |
case "tag": { |
571 |
String x = args[n++];
|
|
571 |
String x = StringUtils.trim(args[n++]);
|
|
572 | 572 |
int pos = x.indexOf("="); |
573 | 573 |
if( pos < 0 ) { |
574 | 574 |
this.tags.put(x, null); |
575 | 575 |
} else { |
576 | 576 |
this.tags.put( |
577 |
StringUtils.substring(x, 0, pos),
|
|
578 |
StringUtils.substring(x, pos+1)
|
|
577 |
StringUtils.trim(StringUtils.substring(x, 0, pos)),
|
|
578 |
StringUtils.trim(StringUtils.substring(x, pos+1))
|
|
579 | 579 |
); |
580 | 580 |
} |
581 | 581 |
break; |
582 | 582 |
} |
583 | 583 |
case "set": { |
584 |
String x = args[n++];
|
|
584 |
String x = StringUtils.trim(args[n++]);
|
|
585 | 585 |
int pos = x.indexOf("="); |
586 | 586 |
if( pos < 0 ) { |
587 | 587 |
this.assignments.put(x, null); |
588 | 588 |
} else { |
589 | 589 |
this.assignments.put( |
590 |
StringUtils.substring(x, 0, pos),
|
|
591 |
StringUtils.substring(x, pos+1)
|
|
590 |
StringUtils.trim(StringUtils.substring(x, 0, pos)),
|
|
591 |
StringUtils.trim(StringUtils.substring(x, pos+1))
|
|
592 | 592 |
); |
593 | 593 |
} |
594 | 594 |
break; |
Also available in: Unified diff