org.swhite.daap
Class Database

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

public class Database
extends java.lang.Object

Created on Friday Dec 26 2003.

Author:
Steve White

Constructor Summary
Database(byte[] data)
          Constructs a new Database with the specified daap data.
 
Method Summary
 int getContainerCount()
          Returns the number of containers/playlists (daap tag mctc)
 int getItemCount()
          Returns the number of items in the database (daap tag mimc)
 int getItemID()
          Returns the itemid (daap tag miid)
 java.lang.String getItemName()
          Returns the item name (daap tag minm)
 java.lang.String getPersistentID()
          Returns the persistent id (daap tag mper)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Database

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

Parameters:
data - Raw daap data
Method Detail

getItemID

public int getItemID()
Returns the itemid (daap tag miid)

Returns:
int

getPersistentID

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

Returns:
int

getItemName

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

Returns:
String

getItemCount

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

Returns:
int

getContainerCount

public int getContainerCount()
Returns the number of containers/playlists (daap tag mctc)

Returns:
int

toString

public java.lang.String toString()