logo

class

web::WebOutStream

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

WebOutStream provides methods for generating XML and XHTML content.

Slots

a

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

Start a <a> tag.

Source

aEnd

This aEnd()

End a <a> tag.

Source

atom

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

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

Source

b

This b(Str attrs := null)

Start a <b> tag.

Source

bEnd

This bEnd()

End a <b> tag.

Source

body

This body(Str attrs := null)

Start a <body> tag.

Source

bodyEnd

This bodyEnd()

End a <body> tag.

Source

br

This br()

Write out a complete <br/> tag.

Source

button

This button(Str attrs := null)

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

Source

checkbox

This checkbox(Str attrs := null)

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

Source

code

This code(Str attrs := null)

Start a <code> tag.

Source

codeEnd

This codeEnd()

End a <code> tag.

Source

css

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.

Source

dd

This dd(Str attrs := null)

Start a <dd> tag.

Source

ddEnd

This ddEnd()

End a <dd> tag.

Source

div

This div(Str attrs := null)

Start a <div> tag.

Source

divEnd

This divEnd()

End a <div> tag.

Source

dl

This dl(Str attrs := null)

Start a <dl> tag.

Source

dlEnd

This dlEnd()

End a <dl> tag.

Source

docType

This docType()

Write the XHTML Strict DOCTYPE.

Source

dt

This dt(Str attrs := null)

Start a <dt> tag.

Source

dtEnd

This dtEnd()

End a <dt> tag.

Source

em

This em(Str attrs := null)

Start a <em> tag.

Source

emEnd

This emEnd()

End a <em> tag.

Source

esc

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.

Source

form

This form(Str attrs := null)

Start a <form> tag.

Source

formEnd

This formEnd()

End a <form> tag.

Source

h1

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

Write a complete <h1> tag.

Source

h2

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

Write a complete <h2> tag.

Source

h3

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

Write a complete <h3> tag.

Source

h4

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

Write a complete <h4> tag.

Source

h5

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

Write a complete <h5> tag.

Source

h6

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

Write a complete <h6> tag.

Source

This head()

Start a <head> tag.

Source

headEnd

This headEnd()

End a <head> tag.

Source

hidden

This hidden(Str attrs := null)

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

Source

hr

This hr()

Write out a complete <hr/> tag.

Source

html

This html()

Start a <html> tag.

Source

htmlEnd

This htmlEnd()

End a <html> tag.

Source

i

This i(Str attrs := null)

Start a <i> tag.

Source

iEnd

This iEnd()

End a <i> tag.

Source

img

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

Write a complete <img> tag.

Source

input

This input(Str attrs := null)

Write a complete <input> tag.

Source

js

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.

Source

li

This li(Str attrs := null)

Start a <li> tag.

Source

liEnd

This liEnd()

End a <li> tag.

Source

make

new make(OutStream out)

Construct a WebOutStream that wraps the given OutStream.

Source

nl

This nl()

Convenience for writeChar('\n').

Source

ol

This ol(Str attrs := null)

Start a <ol> tag.

Source

olEnd

This olEnd()

End a <ol> tag.

Source

option

This option(Str attrs := null)

Start a <option> tag.

Source

optionEnd

This optionEnd()

End a <option> tag.

Source

p

This p(Str attrs := null)

Start a <p> tag.

Source

pEnd

This pEnd()

End a <p> tag.

Source

password

This password(Str attrs := null)

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

Source

pre

This pre(Str attrs := null)

Start a <pre> tag.

Source

preEnd

This preEnd()

End a <pre> tag.

Source

prolog

This prolog()

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

Source

radio

This radio(Str attrs := null)

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

Source

rss

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

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

Source

select

This select(Str attrs := null)

Start a <select> tag.

Source

selectEnd

This selectEnd()

End a <select> tag.

Source

span

This span(Str attrs := null)

Start a <span> tag.

Source

spanEnd

This spanEnd()

End a <span> tag.

Source

submit

This submit(Str attrs := null)

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

Source

tab

This tab(Int numSpaces := 2)

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

Source

table

This table(Str attrs := null)

Start a <table> tag.

Source

tableEnd

This tableEnd()

End a <table> tag.

Source

tag

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.

Source

tagEnd

This tagEnd(Str elemName)

Write an end tag.

Source

td

This td(Str attrs := null)

Start a <td> tag.

Source

tdEnd

This tdEnd()

End a <td> tag.

Source

textArea

This textArea(Str attrs := null)

Start a <textarea> tag.

Source

textAreaEnd

This textAreaEnd()

End a <textarea> tag.

Source

textField

This textField(Str attrs := null)

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

Source

th

This th(Str attrs := null)

Start a <th> tag.

Source

thEnd

This thEnd()

End a <th> tag.

Source

title

This title(Str title)

Write a complete <title> tag.

Source

tr

This tr(Str attrs := null)

Start a <tr> tag.

Source

trEnd

This trEnd()

End a <tr> tag.

Source

ul

This ul(Str attrs := null)

Start a <ul> tag.

Source

ulEnd

This ulEnd()

End a <ul> tag.

Source

w

This w(Obj obj)

Convenience for writeChars(obj.toStr).

Source