public void characters ( char [ ] ch , int start , int length ) throws SAXException { if ( startTable ) { try { String string = new String ( ch , start , length ) ; for ( int i = string . length ( ) - 1 ; i >= 0 ; i -- ) { // Trim trailing spaces int x = Character . getNumericValue ( string . charAt ( i ) ) ; if ( ( Character . isWhitespace ( string . charAt ( i ) ) ) || ( x == - 1 ) ) string = string . substring ( 0 , string . length ( ) - 1 ) ; else break ; } if ( row == 0 ) { new StringField ( m_record , string , - 1 , string , null ) ; } else { if ( col == 0 ) { if ( m_record . getEditMode ( ) == DBConstants . EDIT_ADD ) m_record . add ( ) ; m_record . addNew ( ) ; } m_record . getField ( col + 1 ) . setString ( string ) ; } } catch ( DBException e ) { e . printStackTrace ( ) ; } } }
Characters Method .