FeedEnclosure
An enclosure of a feed entry: a media file the entry points at. Stable Core. Built with FeedEnclosure(url) { mimeType = …; lengthBytes = … }.
url is an absolute http or https link with its fragment kept. lengthBytes is the declared size when the feed gave a positive one, else null: a length of zero or less is unknown. Equality is on every field. toString() prints the URL as scheme, host and port, and presence for the rest.
Types
Link copied to clipboard
Collects the optional fields of a FeedEnclosure. Not thread-safe; use it only inside the factory's lambda.
Functions
Link copied to clipboard
Two FeedEnclosures are equal when their url, mimeType and lengthBytes are equal.