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
-
Start a <b> tag.
- bEndSource
-
This bEnd()
End a <b> tag.
- bodySource
-
Start a <body> tag.
- bodyEndSource
-
This bodyEnd()
End a <body> tag.
- brSource
-
This br()
Write out a complete <br/> tag.
-
This button(Str? attrs := null)
Convenience for input("type='button'" + attrs).
- checkboxSource
-
This checkbox(Str? attrs := null)
Convenience for input("type='checkbox'" + attrs)
- codeSource
-
Start a <code> tag.
- codeEndSource
-
This codeEnd()
End a <code> tag.
-
private Uri[]? cssUris
- ddSource
-
Start a <dd> tag.
- ddEndSource
-
This ddEnd()
End a <dd> tag.
- divSource
-
Start a <div> tag.
- divEndSource
-
This divEnd()
End a <div> tag.
- dlSource
-
Start a <dl> tag.
- dlEndSource
-
This dlEnd()
End a <dl> tag.
- docTypeSource
-
This docType()
Write the XHTML Strict DOCTYPE.
- dtSource
-
Start a <dt> tag.
- dtEndSource
-
This dtEnd()
End a <dt> tag.
- emSource
-
Start a <em> tag.
- emEndSource
-
This emEnd()
End a <em> tag.
- escSource
-
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. - formSource
-
Start a <form> tag.
- formEndSource
-
This formEnd()
End a <form> tag.
- h1Source
-
Start a <h1> tag.
- h1EndSource
-
This h1End()
End a <h1> tag.
- h2Source
-
Start a <h2> tag.
- h2EndSource
-
This h2End()
End a <h2> tag.
- h3Source
-
Start a <h3> tag.
- h3EndSource
-
This h3End()
End a <h3> tag.
- h4Source
-
Start a <h4> tag.
- h4EndSource
-
This h4End()
End a <h4> tag.
- h5Source
-
Start a <h5> tag.
- h5EndSource
-
This h5End()
End a <h5> tag.
- h6Source
-
Start a <h6> tag.
- h6EndSource
-
This h6End()
End a <h6> tag.
- headSource
-
This head()
Start a <head> tag.
- headEndSource
-
This headEnd()
End a <head> tag.
-
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
-
Start a <i> tag.
- iEndSource
-
This iEnd()
End a <i> tag.
- imgSource
-
This img(Uri src, Str? attrs := null)
Write a complete <img> tag.
- includeCssSource
-
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.
- includeJsSource
-
This includeJs(Uri? href := null)
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.
- inputSource
-
This input(Str? attrs := null)
Write a complete <input> tag.
-
private Uri[]? jsUris
- liSource
-
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
-
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
-
Start a <p> tag.
- pEndSource
-
This pEnd()
End a <p> tag.
- passwordSource
-
This password(Str? attrs := null)
Convenience for input("type='password'" + attrs).
- preSource
-
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.
- scriptSource
-
This script(Str? attrs := 'text/javascript'")
Start a <script> tag.
- scriptEndSource
-
This scriptEnd()
End a <script> tag.
- selectSource
-
This select(Str? attrs := null)
Start a <select> tag.
- selectEndSource
-
This selectEnd()
End a <select> tag.
- spanSource
-
Start a <span> tag.
- spanEndSource
-
This spanEnd()
End a <span> tag.
- styleSource
-
This style(Str? attrs := 'text/css'")
Start a <style> tag.
- styleEndSource
-
This styleEnd()
End a <style> tag.
- submitSource
-
This submit(Str? attrs := null)
Convenience for input("type='submit'" + attrs).
- tabSource
-
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
-
Write an end tag.
- tdSource
-
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
-
Start a <th> tag.
- thEndSource
-
This thEnd()
End a <th> tag.
- titleSource
-
This title(Str? attrs := null)
Write a complete <title> tag.
- titleEndSource
-
This titleEnd()
End a <title> tag.
- trSource
-
Start a <tr> tag.
- trEndSource
-
This trEnd()
End a <tr> tag.
- ulSource
-
Start a <ul> tag.
- ulEndSource
-
This ulEnd()
End a <ul> tag.
- wSource
-
Convenience for writeChars(obj.toStr).