|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.rss.Enclosure
public class Enclosure
Describes a media object that is attached to the item. A use-case narrative for this element is here.
Constructor Summary | |
---|---|
Enclosure()
|
Method Summary | |
---|---|
long |
getLength()
Returns how big it is in bytes. |
String |
getType()
Says what its type is, a standard MIME type. |
URI |
getURL()
Returns where the enclosure is located. |
String |
getURLString()
Returns where the enclosure is located. |
void |
setLength(long length)
Specifies how big it is in bytes. |
void |
setType(String type)
Specifies what its type is, a standard MIME type. |
void |
setURL(URI url)
Specifies where the enclosure is located. |
void |
setURLString(String url)
Specifies where the enclosure is located. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Enclosure()
Method Detail |
---|
public void setURLString(String url) throws URISyntaxException
url
- an URL as a string. Shall not be null
.
NullPointerException
- if url
is null
.
URISyntaxException
- if the given string violates RFC 2396, as augmented by the URI
deviations.getURLString()
,
setURL(java.net.URI)
public String getURLString()
null
.
NullPointerException
- if no URL has been specified in this enclosure.setURLString(java.lang.String)
,
getURL()
public void setURL(URI url)
url
- an URL. Shall not be null
.
NullPointerException
- if url
is null
.getURL()
,
setURLString(java.lang.String)
public URI getURL()
null
if not yet initialized.setURL(java.net.URI)
,
getURLString()
public void setLength(long length)
length
- a length.getLength()
public long getLength()
setLength(long)
public String getType()
null
.setType(java.lang.String)
public void setType(String type)
type
- a MIME type. Shall not be null
.
NullPointerException
- if type
is null
.getType()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |