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.

Method Index

 o wrap(String)
Embed this element inside the given tags.
 o write(OutputStream)
Write this object to OutputStream as html.

Methods

 o 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: <b><img src=/images/banner.gif>Jeeves</b>
 o 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