code: public static String readText(final BufferedReader breader) {
      String line;
      final StringBuilder sb = new StringBuilder();
      try {
        while ((line = breader.readLine()) != null) {
          sb.append(line).append(LINE_BREAK);
        }
      } catch (final IOException e) {
        e.printStackTrace();
      }
      String text = sb.toString();
      text = buildText(text);
      return text;
    }
docs: Reads standard input text from the BufferedReader and adds a line break
  mark for every line. The output of this functions is then further processed
  by methods called in the constructors of the SentenceSegmenter and
  Tokenizer.
  
  @param breader
  the buffered reader
  @return the input text in a string object