| Constructor and Description |
|---|
Enclosure() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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()Copyright © 2008–2017. All rights reserved.