|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 documentMethod 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 ContainerElement
e
- the element to addpublic void addElement(java.lang.String s)
addElement
in interface ContainerElement
s
- the string to addpublic 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
outpublic void generate(java.io.Writer out) throws java.io.IOException
generate
in interface Element
out
- 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 |