org.erowid.sperowider.htmlshredding
Class ScriptTag

java.lang.Object
  extended byorg.erowid.sperowider.htmlshredding.HTMLTag
      extended byorg.erowid.sperowider.htmlshredding.ScriptTag
All Implemented Interfaces:
HTMLElement

public class ScriptTag
extends HTMLTag

Represents an embedded script inside an HTML document.

Version:
: $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperowider/htmlshredding/ScriptTag.java,v 1.3 2005/01/15 23:26:17 gurustu Exp $
Author:
: $Author: gurustu $

Constructor Summary
ScriptTag(HTMLTag scriptTag, String script)
          The passed in parameter should not include the <script></script> tags.
 
Method Summary
 void setFollowChar(char value)
          The script tag has both a starting and ending tag, so this is ignored
 void setLeadChar(char value)
          The script tag has both a starting and ending tag, so this is ignored.
 void write(Writer w)
          Writes script element to writer
 
Methods inherited from class org.erowid.sperowider.htmlshredding.HTMLTag
addAttributesFromTag, addHTMLTagAttribute, getFollowChar, getHTMLTagAttribute, getHTMLTagAttributes, getLeadChar, getTagName, setTagName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptTag

public ScriptTag(HTMLTag scriptTag,
                 String script)
The passed in parameter should not include the <script></script> tags.

Method Detail

write

public void write(Writer w)
           throws IOException
Writes script element to writer

Specified by:
write in interface HTMLElement
Overrides:
write in class HTMLTag
Throws:
IOException

setFollowChar

public void setFollowChar(char value)
The script tag has both a starting and ending tag, so this is ignored

Overrides:
setFollowChar in class HTMLTag

setLeadChar

public void setLeadChar(char value)
The script tag has both a starting and ending tag, so this is ignored.

Overrides:
setLeadChar in class HTMLTag

spero logo small Sperowider is
© 2005 Erowid.org