org.swhite.daap
Class Playlist

java.lang.Object
  extended byorg.swhite.daap.Playlist

public class Playlist
extends java.lang.Object

Created on Tuesday May 20, 2003

Author:
Steve White

Constructor Summary
Playlist(byte[] data)
          Constructs a new Playlist with the specified daap data.
 
Method Summary
 int getItemCount()
          Returns the number of items in the playlist (daap tag mimc)
 int getItemID()
          Returns the item id (daap tag miid)
 java.lang.String getItemName()
          Returns the name of the playlist (daap tag minm)
 java.lang.String getPersistentID()
          Returns the persistent id (daap tag mper)
 boolean isSmartPlaylist()
          Returns true if the playlist is a smart playlist (daap tag aeSP)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Playlist

public Playlist(byte[] data)
         throws ParserException
Constructs a new Playlist with the specified daap data.

Parameters:
data - Raw daap data
Method Detail

getItemID

public int getItemID()
Returns the item id (daap tag miid)

Returns:
int

getPersistentID

public java.lang.String getPersistentID()
Returns the persistent id (daap tag mper)

Returns:
String

getItemName

public java.lang.String getItemName()
Returns the name of the playlist (daap tag minm)

Returns:
String

isSmartPlaylist

public boolean isSmartPlaylist()
Returns true if the playlist is a smart playlist (daap tag aeSP)

Returns:
boolean

getItemCount

public int getItemCount()
Returns the number of items in the playlist (daap tag mimc)

Returns:
int

toString

public java.lang.String toString()