public String generate ( final int [ ] nodeSizes , final int bad ) { buf . setLength ( 0 ) ; for ( int i = 0 ; i < nodes . size ( ) && i < nodeSizes . length ; i ++ ) { buf . append ( nodes . get ( i ) . getCharacters ( nodeSizes [ i ] , bad ) ) ; } String value = buf . toString ( ) ; buf . setLength ( 0 ) ; return value ; }
Generates a string containing subject to the parameter value only allowed or one half of forbidden characters .