org.erowid.sperowider.htmlshredding
Class HTMLComment

java.lang.Object
  extended byorg.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


Constructor Summary
HTMLComment(String text)
          Creates a new HTMLComment object.
 
Method Summary
 String getText()
           
 void write(Writer w)
          Writes the HTMLElement as HTML to the passed in Writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLComment

public HTMLComment(String text)
Creates a new HTMLComment object. Do not include the <!-- or --> when creating the comment.

Method Detail

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()

spero logo small Sperowider is
© 2005 Erowid.org