Create a new comment.paramtext The text of the comment. setValue(text);
setValue(text);
return text;
if (text == null) { throw new NullPointerException("Comment text is null."); } this.text = text;
seejava.lang.Object#toString() StringBuffer buf = new StringBuffer(); buf.append(COMMENT_BEGIN) .append(Escape.getInstance().encodeEntities(text, "")) .append(COMMENT_END); return buf.toString();
StringBuffer buf = new StringBuffer(); buf.append(COMMENT_BEGIN) .append(Escape.getInstance().encodeEntities(text, "")) .append(COMMENT_END); return buf.toString();
output.append(toString()); output.flush();
FileWriter fw = new FileWriter(file); write(fw); fw.close();