@haxall/haxall
    Preparing search index...

    Class WebOutStream

    WebOutStream provides methods for generating XML and XHTML content.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    type$: Type

    Methods

    • Start a tag.

      Parameters

      Returns this

    article

    • article(attrs?: string): this

      Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Start a

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      Returns this

    • Write a complete tag for an Atom feed resource.

      Parameters

      • href: Uri
      • Optionalattrs: string

      Returns this

    • Start a tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a tag.

      Returns this

    • Start a tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a tag.

      Returns this

    • Write out a complete
      tag.

      Returns this

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

      Parameters

      • Optionalattrs: string

      Returns this

    • The current charset used to encode Unicode characters into bytes. The default charset should always be UTF-8.

      Returns Charset

    • The current charset used to encode Unicode characters into bytes. The default charset should always be UTF-8.

      Parameters

      Returns void

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

      Parameters

      • Optionalattrs: string

      Returns this

    • Close the output stream. This method is guaranteed to never throw an IOErr. Return true if the stream was closed successfully or false if the stream was closed abnormally. Default implementation does nothing and returns true.

      Returns boolean

    • Start a tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a tag.

      Returns this

    • Return a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object:

      this < that   =>  <0
      this == that => 0
      this > that => >0

      This method may also be accessed via the < <= <=> >= and > shortcut operators. If not overridden the default implementation compares the toStr representations. Also see docLang.

      Examples:

      3.compare(8)  =>  -1
      8.compare(3) => 1
      8.compare(8) => 0
      3 <=> 8 => -1 // shortcut for 3.compare(8)

      Parameters

      Returns number

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Write the XHTML Strict DOCTYPE.

      Returns this

    • Write the HTML5 DOCTYPE.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Start a tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a tag.

      Returns this

    • Byte order mode for binary writes. Default is Endian.big (network byte order).

      Returns Endian

    • Byte order mode for binary writes. Default is Endian.big (network byte order).

      Parameters

      Returns void

    • Compare this object to the specified for equality. This method may be accessed via the == and != shortcut operators. If not overridden the default implementation compares for reference equality using the === operator. If this method is overridden, then hash() must also be overridden such that any two objects which return true for equals() must return the same value for hash(). This method must accept null and return false.

      Parameters

      Returns boolean

    • 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.

      Parameters

      Returns this

    • Write a complete tag for a favicon. You must specifiy the MIME type for your icon in the attrs argument:

      out.favIcon(`/fav.png`, "type='image/png'")
      

      Parameters

      • href: Uri
      • Optionalattrs: string

      Returns this

    • Flush the stream so any buffered bytes are written out. Default implementation does nothing. Throw IOErr on error. Return this.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a tag.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

    • Return a unique hashcode for this object. If a class overrides hash() then it must ensure if equals() returns true for any two objects then they have same hash code.

      Returns number

    • Start a tag.

      Returns this

    • End a tag.

      Returns this

    • Start a

      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a

      tag.

      Returns this

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

      Parameters

      • Optionalattrs: string

      Returns this

    • Write out a complete


      tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • Start a tag.

      Returns this

    • End a tag.

      Returns this

    • Start a tag.

      Parameters

      • Optionalattrs: string

      Returns this

    • End a tag.

      Returns this

    • Write a complete tag.

      Parameters

      • src: Uri
      • Optionalattrs: string

      Returns this

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

      Parameters

      Returns this

    • Write a complete