org.erowid.sperowider.htmlshredding
Class ScriptTag
java.lang.Object
org.erowid.sperowider.htmlshredding.HTMLTag
org.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 |
ScriptTag
public ScriptTag(HTMLTag scriptTag,
String script)
- The passed in parameter should not include the <script></script> tags.
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