private String parseLevelOfTheory ( String line ) { StringBuffer summary = new StringBuffer ( ) ; summary . append ( line ) ; try { do { line = input . readLine ( ) . trim ( ) ; summary . append ( line ) ; } while ( ! ( line . indexOf ( ' ' ) >= 0 ) ) ; } catch ( Exception exc ) { logger . debug ( "syntax problem while parsing summary of g98 section: " ) ; logger . debug ( exc ) ; } logger . debug ( "parseLoT(): " + summary . toString ( ) ) ; StringTokenizer st1 = new StringTokenizer ( summary . toString ( ) , "\\" ) ; // Must contain at least 6 tokens if ( st1 . countTokens ( ) < 6 ) { return null ; } // Skip first four tokens for ( int i = 0 ; i < 4 ; ++ i ) { st1 . nextToken ( ) ; } return st1 . nextToken ( ) + "/" + st1 . nextToken ( ) ; }
Select the theory and basis set from the first archive line .