Revision 41901 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
CSVStoreProvider.java | ||
---|---|---|
678 | 678 |
// Y por ultimo hacemos caso a lo que se haya especificado en los parametros |
679 | 679 |
// de apertura del CSV, teniendo esto prioridad sobre todo. |
680 | 680 |
String param_types_def = CSVStoreParameters.getRawFieldTypes(this.getParameters()); |
681 |
String sep = CSVStoreParameters.getDelimiter(param_types_def); |
|
682 |
if( sep != null ) { |
|
683 |
String[] param_types = param_types_def.split(sep); |
|
684 |
for( int i=0; i<fieldTypes.length && i< param_types.length; i++ ) { |
|
685 |
if ( !fieldTypes[i].parse(param_types[i]) ) { |
|
686 |
continue; |
|
681 |
if (StringUtils.isNotBlank(param_types_def)) { |
|
682 |
String sep = CSVStoreParameters.getDelimiter(param_types_def); |
|
683 |
if ( StringUtils.isNotBlank(sep) ) { |
|
684 |
String[] param_types = param_types_def.split(sep); |
|
685 |
for (int i = 0; i < fieldTypes.length && i < param_types.length; i++) { |
|
686 |
if (!fieldTypes[i].parse(param_types[i])) { |
|
687 |
continue; |
|
688 |
} |
|
689 |
|
|
687 | 690 |
} |
688 |
|
|
689 | 691 |
} |
690 | 692 |
} |
691 | 693 |
// |
Also available in: Unified diff