|
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.SpecificPlaylistFactory
public final class SpecificPlaylistFactory
The playlist
factory.
Method Summary | |
---|---|
SpecificPlaylistProvider |
findProviderByExtension(String filename)
Searches for a provider handling the specific playlist files with the given extension string. |
SpecificPlaylistProvider |
findProviderById(String id)
Searches for a provider handling the type of specific playlists identified by the given string. |
static SpecificPlaylistFactory |
getInstance()
Returns the unique class instance. |
List<SpecificPlaylistProvider> |
getProviders()
Lists all currently installed playlist providers. |
SpecificPlaylist |
readFrom(File file)
Reads a playlist from the specified file instance. |
SpecificPlaylist |
readFrom(URL url)
Reads a playlist from the specified URL. |
void |
reloadProviders()
Refreshes the list of playlist providers managed by this factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SpecificPlaylistFactory getInstance()
null
.public void reloadProviders()
public SpecificPlaylist readFrom(URL url) throws IOException
url
- an URL to playlist contents. Shall not be null
.
null
if the format has been recognized, but the playlist is malformed.
NullPointerException
- if url
is null
.
IOException
- if an I/O exception occurs.SpecificPlaylistProvider.readFrom(java.io.InputStream, java.lang.String, org.apache.commons.logging.Log)
,
readFrom(File)
public SpecificPlaylist readFrom(File file) throws IOException
file
- an file representing playlist contents. Shall not be null
.
null
if the format has been recognized, but the playlist is malformed.
NullPointerException
- if file
is null
.
SecurityException
- if a required system property value cannot be accessed.
IOException
- if an I/O exception occurs.readFrom(URL)
public SpecificPlaylistProvider findProviderById(String id)
id
- the unique string identifying a type of specific playlists. Not case sensitive. Shall not be null
.
null
if none was found.
NullPointerException
- if id
is null
.findProviderByExtension(java.lang.String)
public SpecificPlaylistProvider findProviderByExtension(String filename)
filename
- a playlist file name, or a simple extension string (with the leading '.' character, if appropriate). Not case sensitive. Shall not be null
.
null
if none was found.
NullPointerException
- if filename
is null
.findProviderById(java.lang.String)
public List<SpecificPlaylistProvider> getProviders()
null
.findProviderByExtension(java.lang.String)
,
findProviderById(java.lang.String)
|
© 2008-2009 Christophe Delory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |