
WebOutStream provides methods for generating XML and XHTML content.
Slots
- a
-
WebOutStream a(Uri href, Str attrs := null)
Start a <a> tag.
- aEnd
-
WebOutStream aEnd()
End a <a> tag.
- b
-
WebOutStream b(Str attrs := null)
Start a <b> tag.
- bEnd
-
WebOutStream bEnd()
End a <b> tag.
- body
-
WebOutStream body(Str attrs := null)
Start a <body> tag.
- bodyEnd
-
WebOutStream bodyEnd()
End a <body> tag.
- br
-
WebOutStream br()
Write out a complete <br/> tag.
-
WebOutStream button(Str attrs := null)
Convenience for input("type='button'" + attrs).
- code
-
WebOutStream code(Str attrs := null)
Start a <code> tag.
- codeEnd
-
WebOutStream codeEnd()
End a <code> tag.
- css
-
WebOutStream 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.
-
private Uri[] cssUris
- dd
-
WebOutStream dd(Str attrs := null)
Start a <dd> tag.
- ddEnd
-
WebOutStream ddEnd()
End a <dd> tag.
- div
-
WebOutStream div(Str attrs := null)
Start a <div> tag.
- divEnd
-
WebOutStream divEnd()
End a <div> tag.
- dl
-
WebOutStream dl(Str attrs := null)
Start a <dl> tag.
- dlEnd
-
WebOutStream dlEnd()
End a <dl> tag.
- docType
-
WebOutStream docType()
Write the XHTML Strict DOCTYPE.
- dt
-
WebOutStream dt(Str attrs := null)
Start a <dt> tag.
- dtEnd
-
WebOutStream dtEnd()
End a <dt> tag.
- em
-
WebOutStream em(Str attrs := null)
Start a <em> tag.
- emEnd
-
WebOutStream emEnd()
End a <em> tag.
- esc
-
WebOutStream 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 seesys::Str.toXml
. If obj is null, then "null" is written. - form
-
WebOutStream form(Str attrs := null)
Start a <form> tag.
- formEnd
-
WebOutStream formEnd()
End a <form> tag.
- h1
-
WebOutStream h1(Str content, Str attrs := null)
Write a complete <h1> tag.
- h2
-
WebOutStream h2(Str content, Str attrs := null)
Write a complete <h2> tag.
- h3
-
WebOutStream h3(Str content, Str attrs := null)
Write a complete <h3> tag.
- h4
-
WebOutStream h4(Str content, Str attrs := null)
Write a complete <h4> tag.
- h5
-
WebOutStream h5(Str content, Str attrs := null)
Write a complete <h5> tag.
- h6
-
WebOutStream h6(Str content, Str attrs := null)
Write a complete <h6> tag.
- head
-
WebOutStream head()
Start a <head> tag.
- headEnd
-
WebOutStream headEnd()
End a <head> tag.
-
WebOutStream hidden(Str attrs := null)
Convenience for input("type='hidden'" + attrs).
- hr
-
WebOutStream hr()
Write out a complete <hr/> tag.
- html
-
WebOutStream html()
Start a <html> tag.
- htmlEnd
-
WebOutStream htmlEnd()
End a <html> tag.
- i
-
WebOutStream i(Str attrs := null)
Start a <i> tag.
- iEnd
-
WebOutStream iEnd()
End a <i> tag.
- img
-
WebOutStream img(Uri src, Str attrs := null)
Write a complete <img> tag.
- input
-
WebOutStream input(Str attrs := null)
Write a complete <input> tag.
- js
-
WebOutStream 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.
-
private Uri[] jsUris
- li
-
WebOutStream li(Str attrs := null)
Start a <li> tag.
- liEnd
-
WebOutStream liEnd()
End a <li> tag.
- make
-
new make(OutStream out)
Construct a WebOutStream that wraps the given OutStream.
- nl
-
WebOutStream nl()
Convenience for writeChar('\n').
- ol
-
WebOutStream ol(Str attrs := null)
Start a <ol> tag.
- olEnd
-
WebOutStream olEnd()
End a <ol> tag.
- option
-
WebOutStream option(Str attrs := null)
Start a <option> tag.
- optionEnd
-
WebOutStream optionEnd()
End a <option> tag.
- p
-
WebOutStream p(Str attrs := null)
Start a <p> tag.
- pEnd
-
WebOutStream pEnd()
End a <p> tag.
- password
-
WebOutStream password(Str attrs := null)
Convenience for input("type='password'" + attrs).
- pre
-
WebOutStream pre(Str attrs := null)
Start a <pre> tag.
- preEnd
-
WebOutStream preEnd()
End a <pre> tag.
- prolog
-
WebOutStream prolog()
Write out a prolog statement using the streams current charset encoding.
- select
-
WebOutStream select(Str attrs := null)
Start a <select> tag.
- selectEnd
-
WebOutStream selectEnd()
End a <select> tag.
- span
-
WebOutStream span(Str attrs := null)
Start a <span> tag.
- spanEnd
-
WebOutStream spanEnd()
End a <span> tag.
- submit
-
WebOutStream submit(Str attrs := null)
Convenience for input("type='submit'" + attrs).
- tab
-
WebOutStream tab(Int numSpaces := 2)
Convenience for writeChars(Str.spaces(numSpaces)).
- table
-
WebOutStream table(Str attrs := null)
Start a <table> tag.
- tableEnd
-
WebOutStream tableEnd()
End a <table> tag.
- tag
-
WebOutStream 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.
- tagEnd
-
WebOutStream tagEnd(Str elemName)
Write an end tag.
- td
-
WebOutStream td(Str attrs := null)
Start a <td> tag.
- tdEnd
-
WebOutStream tdEnd()
End a <td> tag.
- textArea
-
WebOutStream textArea(Str attrs := null)
Start a <textarea> tag.
- textAreaEnd
-
WebOutStream textAreaEnd()
End a <textarea> tag.
- textField
-
WebOutStream textField(Str attrs := null)
Convenience for input("type='text'" + attrs).
- th
-
WebOutStream th(Str attrs := null)
Start a <th> tag.
- thEnd
-
WebOutStream thEnd()
End a <th> tag.
- title
-
WebOutStream title(Str title)
Write a complete <title> tag.
- tr
-
WebOutStream tr(Str attrs := null)
Start a <tr> tag.
- trEnd
-
WebOutStream trEnd()
End a <tr> tag.
- ul
-
WebOutStream ul(Str attrs := null)
Start a <ul> tag.
- ulEnd
-
WebOutStream ulEnd()
End a <ul> tag.
- w
-
WebOutStream w(Obj obj)
Convenience for writeChars(obj.toStr).
More Info
Slots
- a
- aEnd
- b
- bEnd
- body
- bodyEnd
- br
- button
- code
- codeEnd
- css
- cssUris
- dd
- ddEnd
- div
- divEnd
- dl
- dlEnd
- docType
- dt
- dtEnd
- em
- emEnd
- esc
- form
- formEnd
- h1
- h2
- h3
- h4
- h5
- h6
- head
- headEnd
- hidden
- hr
- html
- htmlEnd
- i
- iEnd
- img
- input
- js
- jsUris
- li
- liEnd
- make
- nl
- ol
- olEnd
- option
- optionEnd
- p
- pEnd
- password
- pre
- preEnd
- prolog
- select
- selectEnd
- span
- spanEnd
- submit
- tab
- table
- tableEnd
- tag
- tagEnd
- td
- tdEnd
- textArea
- textAreaEnd
- textField
- th
- thEnd
- title
- tr
- trEnd
- ul
- ulEnd
- w