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