Interface java.servlet.html.HtmlElement
All Packages Class Hierarchy This Package Previous Next Index
Interface java.servlet.html.HtmlElement
- public interface HtmlElement
- extends Object
Interface for objects to write themselves out as html.
-
wrap(String)
- Embed this element inside the given tags.
-
write(OutputStream)
- Write this object to OutputStream as html.
wrap
public abstract void wrap(String tags)
- Embed this element inside the given tags.
- Parameters:
- tags - comman delimmitted String of tags to wrap around
this element ie.
HtmlText text = new HtmlText("Jeeves");
text.wrap("b, img src=/images/banner.gif");
should produce the html:
Jeeves
write
public abstract void write(OutputStream out) throws IOException
- Write this object to OutputStream as html.
- Parameters:
- out - OutputStream to write to.
All Packages Class Hierarchy This Package Previous Next Index