code: private static int flushWordBuffer(final StringBuilder lineBuffer, final StringBuilder wordBuffer, final boolean prepend) {
  
  		int wordCount = 0;
  
  		if (wordBuffer.length() > 0) {
  
  			final String word = wordBuffer.toString().replaceAll("[\\n\\t]+", " ");
  			if (StringUtils.isNotBlank(word)) {
  
  				if (prepend) {
  
  					lineBuffer.insert(0, word);
  
  				} else {
  
  					lineBuffer.append(word);
  				}
  
  				// increase word count
  				wordCount = 1;
  			}
  
  			wordBuffer.setLength(0);
  		}
  
  		return wordCount;
  	}
docs: ~--- private methods --------------------------------------------------------