code: public String getSummaryFromString(String doc, int length) throws IOException
      {
          return getSummary(new StringReader(doc), length);
      }
docs: get document summary from a string
  
  @param   doc
  @param   length
  @return  String
  @throws  IOException