diff options
Diffstat (limited to 'server/src/org/jsoup/nodes/Comment.java')
-rw-r--r-- | server/src/org/jsoup/nodes/Comment.java | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/server/src/org/jsoup/nodes/Comment.java b/server/src/org/jsoup/nodes/Comment.java deleted file mode 100644 index 6abe0e3066..0000000000 --- a/server/src/org/jsoup/nodes/Comment.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.jsoup.nodes; - -/** - * A comment node. - * - * @author Jonathan Hedley, jonathan@hedley.net - */ -public class Comment extends Node { - private static final String COMMENT_KEY = "comment"; - - /** - * Create a new comment node. - * - * @param data - * The contents of the comment - * @param baseUri - * base URI - */ - public Comment(String data, String baseUri) { - super(baseUri); - attributes.put(COMMENT_KEY, data); - } - - @Override - public String nodeName() { - return "#comment"; - } - - /** - * Get the contents of the comment. - * - * @return comment content - */ - public String getData() { - return attributes.get(COMMENT_KEY); - } - - @Override - void outerHtmlHead(StringBuilder accum, int depth, - Document.OutputSettings out) { - if (out.prettyPrint()) { - indent(accum, depth, out); - } - accum.append("<!--").append(getData()).append("-->"); - } - - @Override - void outerHtmlTail(StringBuilder accum, int depth, - Document.OutputSettings out) { - } - - @Override - public String toString() { - return outerHtml(); - } -} |