|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.util.html.Document
public class Document
This class wraps an entire html document (page)
| Field Summary | |
|---|---|
protected java.lang.String |
base
the base URL for this document |
protected ListElement |
body
the body of the document |
protected java.lang.String |
title
this title of the document |
| Constructor Summary | |
|---|---|
Document()
Construct a document with no title and an empty body |
|
Document(java.lang.String title)
Construct a document with a title but an empty body |
|
| Method Summary | |
|---|---|
void |
addElement(Element e)
Add another element to the body of the document |
void |
addElement(java.lang.String s)
Add another string to the body of the document |
void |
generate(java.io.Writer out)
convert representation to html and write it out |
void |
generateHeader(java.io.Writer out)
Write the header to the output |
void |
setBase(java.lang.String base)
Writer for the base url |
void |
setTitle(java.lang.String title)
Writer for title |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String title
protected java.lang.String base
protected ListElement body
| Constructor Detail |
|---|
public Document()
public Document(java.lang.String title)
title - the title of the document| Method Detail |
|---|
public void setTitle(java.lang.String title)
title - the new document titlepublic void setBase(java.lang.String base)
base - the new base URLpublic void addElement(Element e)
addElement in interface ContainerElemente - the element to addpublic void addElement(java.lang.String s)
addElement in interface ContainerElements - the string to add
public void generateHeader(java.io.Writer out)
throws java.io.IOException
out - the Writer to dump output to
java.io.IOException - an IO error occurred accessing
out
public void generate(java.io.Writer out)
throws java.io.IOException
generate in interface Elementout - the output Writer
java.io.IOException - an IO error occurred accessing
out
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||