- final StringBuffer rest = new StringBuffer();
- while ( st.hasMoreTokens() ) {
- rest.append( st.nextToken() );
+ final StringTokenizer st = new StringTokenizer( line, column_delimiter + "" );
+ int col = 0;
+ if ( st.hasMoreTokens() ) {
+ table.setValue( col++, row, st.nextToken().trim() );
+ }
+ if ( use_first_separator_only ) {
+ final StringBuffer rest = new StringBuffer();
+ while ( st.hasMoreTokens() ) {
+ rest.append( st.nextToken() );
+ }
+ table.setValue( col++, row, rest.toString() );
+ }
+ else {
+ while ( st.hasMoreTokens() ) {
+ table.setValue( col++, row, st.nextToken().trim() );
+ }