Fan

 

class

web::WebOutStream

sys::Obj
  sys::OutStream
    web::WebOutStream

WebOutStream provides methods for generating XML and XHTML content.

Slots

aSource

This a(Uri href, Str? attrs := null)

Start a <a> tag.

aEndSource

This aEnd()

End a <a> tag.

atomSource

This atom(Uri href, Str? attrs := null)

Write a complete <link> tag for an Atom feed resource.

bSource

This b(Str? attrs := null)

Start a <b> tag.

bEndSource

This bEnd()

End a <b> tag.

bodySource

This body(Str? attrs := null)

Start a <body> tag.

bodyEndSource

This bodyEnd()

End a <body> tag.

brSource

This br()

Write out a complete <br/> tag.

buttonSource

This button(Str? attrs := null)

Convenience for input("type='button'" + attrs).

checkboxSource

This checkbox(Str? attrs := null)

Convenience for input("type='checkbox'" + attrs)

codeSource

This code(Str? attrs := null)

Start a <code> tag.

codeEndSource

This codeEnd()

End a <code> tag.

cssSource

This css(Uri href)

Write a complete <link> tag for an external CSS stylesheet. If this URI has already been included in this WebOutStream instance, then this method does nothing.

ddSource

This dd(Str? attrs := null)

Start a <dd> tag.

ddEndSource

This ddEnd()

End a <dd> tag.

divSource

This div(Str? attrs := null)

Start a <div> tag.

divEndSource

This divEnd()

End a <div> tag.

dlSource

This dl(Str? attrs := null)

Start a <dl> tag.

dlEndSource

This dlEnd()

End a <dl> tag.

docTypeSource

This docType()

Write the XHTML Strict DOCTYPE.

dtSource

This dt(Str? attrs := null)

Start a <dt> tag.

dtEndSource

This dtEnd()

End a <dt> tag.

emSource

This em(Str? attrs := null)

Start a <em> tag.

emEndSource

This emEnd()

End a <em> tag.

escSource

This esc(Obj? obj)

Write obj.toStr to the stream as valid XML text. The special control characters amp, lt, apos and quot are always escaped. The gt char is escaped only if it is the first char or if preceeded by the ] char. Also see sys::Str.toXml. If obj is null, then "null" is written.

formSource

This form(Str? attrs := null)

Start a <form> tag.

formEndSource

This formEnd()

End a <form> tag.

h1Source

This h1(Str content, Str? attrs := null)

Write a complete <h1> tag.

h2Source

This h2(Str content, Str? attrs := null)

Write a complete <h2> tag.

h3Source

This h3(Str content, Str? attrs := null)

Write a complete <h3> tag.

h4Source

This h4(Str content, Str? attrs := null)

Write a complete <h4> tag.

h5Source

This h5(Str content, Str? attrs := null)

Write a complete <h5> tag.

h6Source

This h6(Str content, Str? attrs := null)

Write a complete <h6> tag.

This head()

Start a <head> tag.

headEndSource

This headEnd()

End a <head> tag.

hiddenSource

This hidden(Str? attrs := null)

Convenience for input("type='hidden'" + attrs).

hrSource

This hr()

Write out a complete <hr/> tag.

htmlSource

This html()

Start a <html> tag.

htmlEndSource

This htmlEnd()

End a <html> tag.

iSource

This i(Str? attrs := null)

Start a <i> tag.

iEndSource

This iEnd()

End a <i> tag.

imgSource

This img(Uri src, Str? attrs := null)

Write a complete <img> tag.

inputSource

This input(Str? attrs := null)

Write a complete <input> tag.

jsSource

This js(Uri href)

Write a complete <script> tag for an external JavaScript file. If this URI has already been included in this WebOutStream instance, then this method does nothing.

liSource

This li(Str? attrs := null)

Start a <li> tag.

liEndSource

This liEnd()

End a <li> tag.

makeSource

new make(OutStream out)

Construct a WebOutStream that wraps the given OutStream.

nlSource

This nl()

Convenience for writeChar('\n').

olSource

This ol(Str? attrs := null)

Start a <ol> tag.

olEndSource

This olEnd()

End a <ol> tag.

optionSource

This option(Str? attrs := null)

Start a <option> tag.

optionEndSource

This optionEnd()

End a <option> tag.

pSource

This p(Str? attrs := null)

Start a <p> tag.

pEndSource

This pEnd()

End a <p> tag.

passwordSource

This password(Str? attrs := null)

Convenience for input("type='password'" + attrs).

preSource

This pre(Str? attrs := null)

Start a <pre> tag.

preEndSource

This preEnd()

End a <pre> tag.

prologSource

This prolog()

Write out a prolog statement using the streams current charset encoding.

radioSource

This radio(Str? attrs := null)

Convenience for input("type='radio'" + attrs)

rssSource

This rss(Uri href, Str? attrs := null)

Write a complete <link> tag for a RSS feed resource.

selectSource

This select(Str? attrs := null)

Start a <select> tag.

selectEndSource

This selectEnd()

End a <select> tag.

spanSource

This span(Str? attrs := null)

Start a <span> tag.

spanEndSource

This spanEnd()

End a <span> tag.

submitSource

This submit(Str? attrs := null)

Convenience for input("type='submit'" + attrs).

tabSource

This tab(Int numSpaces := 2)

Convenience for writeChars(Str.spaces(numSpaces)).

tableSource

This table(Str? attrs := null)

Start a <table> tag.

tableEndSource

This tableEnd()

End a <table> tag.

tagSource

This tag(Str elemName, Str? attrs := null, Bool empty := false)

Write a start tag. Use attrs to fully specify the attributes manually. Use empty to optionally close this element without using an end tag.

tagEndSource

This tagEnd(Str elemName)

Write an end tag.

tdSource

This td(Str? attrs := null)

Start a <td> tag.

tdEndSource

This tdEnd()

End a <td> tag.

textAreaSource

This textArea(Str? attrs := null)

Start a <textarea> tag.

textAreaEndSource

This textAreaEnd()

End a <textarea> tag.

textFieldSource

This textField(Str? attrs := null)

Convenience for input("type='text'" + attrs).

thSource

This th(Str? attrs := null)

Start a <th> tag.

thEndSource

This thEnd()

End a <th> tag.

titleSource

This title(Str title)

Write a complete <title> tag.

trSource

This tr(Str? attrs := null)

Start a <tr> tag.

trEndSource

This trEnd()

End a <tr> tag.

ulSource

This ul(Str? attrs := null)

Start a <ul> tag.

ulEndSource

This ulEnd()

End a <ul> tag.

wSource

This w(Obj? obj)

Convenience for writeChars(obj.toStr).