|
Lizzy v1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object christophedelory.playlist.m3u.Resource
public class Resource
A M3U or PLS playlist resource definition.
Constructor Summary | |
---|---|
Resource()
|
Method Summary | |
---|---|
long |
getLength()
Returns the resource playtime in seconds. |
String |
getLocation()
Returns the location of this resource, as a string. |
String |
getName()
Returns the name (or title) of this resource. |
void |
setLength(long seconds)
Initializes the resource playtime in seconds. |
void |
setLocation(String location)
Initializes the location of this resource from the specified string. |
void |
setName(String name)
Initializes the name (or title) of this resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Resource()
Method Detail |
---|
public String getName()
null
.setName(java.lang.String)
public void setName(String name)
name
- a resource name. May be null
.getName()
public String getLocation()
null
if not yet initialized.setLocation(java.lang.String)
public void setLocation(String location)
location
- a resource location. Shall not be null
.
NullPointerException
- if location
is null
.getLocation()
public long getLength()
setLength(long)
public void setLength(long seconds)
seconds
- a time length in seconds.getLength()
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |