public class Enclosure extends Object implements Serializable
The <enclosure> element.
From the RSS 2.0 specification...
Describes a media object that is attached to the item. More.
<enclosure> is an optional sub-element of <item>.
It has three required attributes. url says where the enclosure is located, length says how big it is in bytes, and type says what its type is, a standard MIME type.
The url must be an http url.
<enclosure url="http://www.scripting.com/mp3s/weatherReportSuite.mp3" length="12216320" type="audio/mpeg" />
A use-case narrative for this element is here.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Attribute |
getAttribute(String attrName) |
List<Attribute> |
getAttributes() |
Attribute |
getLength() |
Attribute |
getType() |
Attribute |
getUrl() |
int |
hashCode() |
String |
toString()
Shows the contents of the <enclosure> element.
|
public List<Attribute> getAttributes()
public Attribute getAttribute(String attrName)
attrName - the name of the attribute to get.Copyright © 2014. All rights reserved.