classafAtom::Content

sys::Obj
  afAtom::Content

Contains, or links to, the content of an Atom Entry.

@see The atom:content Element

makeFromBinary

Source

new makeFromBinary(InStream binaryContent, MimeType type)

The content is Base64 encoded.

makeFromSrc

Source

new makeFromSrc(Uri src, MimeType? type := null)

The given src represents the URI of where the content can be found.

makeFromStr

Source

new makeFromStr(Str content, MimeType type)

Similar to text. If the given type ends in +xml or /xml then the XML is contained inline (like XHTML). If the given type starts with text the content is XML escaped (like HTML). Otherwise the content is Base64 encoded.

makeFromText

Source

new makeFromText(Str content, TextType type := TextType.text)

The most common case, where the content is identical to a text construct.

toXml

Source

virtual XElem toXml()

Creates a <content> element.

xmlBase

Source

Uri? xmlBase

(Optional) Used to control how relative URIs are resolved.

xmlLang

Source

Str? xmlLang

(Optional) Used to identify the language of any human readable text.