@ Override public List < String > getTokens ( ) { //List<String> tokens = new ArrayList<>(); if ( ! tokens . isEmpty ( ) ) return tokens ; log . info ( "Starting prebuffering..." ) ; while ( streamHasMoreTokens ( ) ) { tokens . add ( nextTokenFromStream ( ) ) ; } log . info ( "Tokens prefetch finished. Tokens size: [" + tokens . size ( ) + "]" ) ; return tokens ; }
Returns all tokens as list of Strings