/** * Returns the content as a String object. * This method differs from toString because toString will return an ArrayList with the toString value of the Chunks in this Phrase. * @return the content */ public String getContent() { StringBuffer buf = new StringBuffer(); for (Chunk c: getChunks()) { buf.append(c.toString()); } return buf.toString(); }
/** * Returns the content as a String object. * This method differs from toString because toString will return an ArrayList with the toString value of the Chunks in this Phrase. * @return the content */ public String getContent() { StringBuffer buf = new StringBuffer(); for (Chunk c: getChunks()) { buf.append(c.toString()); } return buf.toString(); }