| 
 | Lizzy v1.1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchristophedelory.playlist.pls.PLSProvider
public class PLSProvider
A text playlist similar to .ini (program settings) files.
 It normally contains only the location of the items in the playlist.
 
 The syntax of a PLS file is the same syntax as a Windows .ini file and was probably chosen because of support in the Windows API.
 Metadata is included in the entry for each song, in a set of parallel arrays where FileN=[address of file]; TitleN=[title of song].
| Constructor Summary | |
|---|---|
| PLSProvider() | |
| Method Summary | |
|---|---|
|  ContentType[] | getContentTypes()Returns a list of one or more content types representing the playlists compatible with this provider. | 
|  String | getId()Returns a unique string identifying the type of specific playlists handled by this provider. | 
|  SpecificPlaylist | readFrom(InputStream in,
         String encoding,
         Log logger)Reads a playlist from the specified input stream. | 
|  SpecificPlaylist | toSpecificPlaylist(Playlist playlist)Builds a specific representation of the given generic playlist. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PLSProvider()
| Method Detail | 
|---|
public String getId()
SpecificPlaylistProvider
getId in interface SpecificPlaylistProvidernull.public ContentType[] getContentTypes()
SpecificPlaylistProvider
getContentTypes in interface SpecificPlaylistProvidernull nor empty.
public SpecificPlaylist readFrom(InputStream in,
                                 String encoding,
                                 Log logger)
                          throws Exception
SpecificPlaylistProvider
readFrom in interface SpecificPlaylistProviderin - an input stream. Shall not be null.encoding - the content encoding of the input resource, or null if not known.logger - the logger that may be used during the unmarshalling process, if needed. Shall not be null.
null if the format has been recognized, but the playlist is malformed.
NullPointerException - if in is null.
Exception - if any error occurs during the unmarshalling process.SpecificPlaylist.writeTo(java.io.OutputStream, java.lang.String), 
SpecificPlaylistFactory.readFrom(java.net.URL)
public SpecificPlaylist toSpecificPlaylist(Playlist playlist)
                                    throws Exception
SpecificPlaylistProvider
toSpecificPlaylist in interface SpecificPlaylistProviderplaylist - a generic playlist. Shall not be null.
null.
NullPointerException - if playlist is null.
Exception - if this service provider is unable to represent the input playlist.SpecificPlaylist.toPlaylist()| 
 | © 2008-2009 Christophe Delory | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||