org.erowid.sperowider.htmlshredding
Class HTMLComment
java.lang.Object
org.erowid.sperowider.htmlshredding.HTMLComment
- All Implemented Interfaces:
- HTMLElement
- public class HTMLComment
- extends Object
- implements HTMLElement
Represents a comment in an HTML document
- Version:
- $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/htmlshredding/HTMLComment.java,v 1.3 2005/01/15 23:26:17 gurustu Exp $
- Author:
- Stu Statman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTMLComment
public HTMLComment(String text)
- Creates a new HTMLComment object. Do not include the <!-- or --> when creating the comment.
write
public void write(Writer w)
throws IOException
- Description copied from interface:
HTMLElement
- Writes the HTMLElement as HTML to the passed in Writer.
- Specified by:
write
in interface HTMLElement
- Parameters:
w
-
- Throws:
IOException
getText
public String getText()