in src/main/java/org/apache/servicemix/components/util/VariableFixedLengthColumnExtractor.java [126:142]
public final void setStringEncodedVariableColumnLengths(String columnLengths) {
this.variableColumnLengths = null;
String[] entries = StringUtils.splitWorker(columnLengths, ";", -1, false);
if ((entries != null) && (entries.length > 0)) {
this.variableColumnLengths = new LinkedHashMap();
for (int i = 0; i < entries.length; i++) {
String[] colLengths = StringUtils.splitWorker(entries[i], ",", -1, true);
if ((colLengths != null) && (colLengths.length > 1)) {
int[] lengths = new int[colLengths.length - 1];
for (int j = 1; j < colLengths.length; j++) {
lengths[j - 1] = Integer.parseInt(colLengths[j]);
}
this.variableColumnLengths.put(colLengths[0], lengths);
}
}
}
}