org.biffle.cliff.pearl
Class DeviceSettings

java.lang.Object
  |
  +--org.biffle.cliff.pearl.DeviceSettings

public class DeviceSettings
extends java.lang.Object

Wrapper for the Device Settings properties file returned from the Pearl device.


Constructor Summary
protected DeviceSettings(java.lang.String text)
          Creates a new DeviceSettings object based on property text from the device.
 
Method Summary
 boolean containsProperty(java.lang.String key)
           
 java.lang.String[] getCapabilities()
          Returns the device's reported capabilities as an array of String tokens.
 java.lang.String[] getCodecs()
          Returns the device's supported codecs as an array of String tokens.
 long getDeviceGeneration()
          Returns the device generation -- the time its contents were last modified as a Unix-style timestamp.
 long getDeviceID()
          Returns the device ID.
 java.lang.String getFirmwareVersion()
          Returns the device's current firmware version.
 long getHardwareRevision()
          Returns the device's reported hardware revision.
 long getLong(java.lang.String key)
          Raw property access.
 java.lang.String getManufacturer()
          Returns the name of the device's manufacturer.
 long getMaxPlaylistEntries()
          Returns the maximum number of playlist entries the device supports.
 java.lang.String getName()
          Returns the name of the device (the model).
 long getRecovery()
          Returns a flag indicating whether or not the device is in recovery mode.
 java.lang.String getRNSPrefix()
          Returns the rns_prefix field.
 long getRNSVersion()
          Returns the rns_version field.
 long getSerial()
          Returns the serial field.
 java.lang.String getStorageName()
          Returns the name of the storage device.
 java.lang.String getString(java.lang.String key)
          Raw property access.
 java.util.Set propertySet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceSettings

protected DeviceSettings(java.lang.String text)
Creates a new DeviceSettings object based on property text from the device.

Method Detail

getCapabilities

public java.lang.String[] getCapabilities()
Returns the device's reported capabilities as an array of String tokens.


getCodecs

public java.lang.String[] getCodecs()
Returns the device's supported codecs as an array of String tokens.


getDeviceGeneration

public long getDeviceGeneration()
Returns the device generation -- the time its contents were last modified as a Unix-style timestamp. This can be used to verify the currency of caches.


getDeviceID

public long getDeviceID()
Returns the device ID. The exact purpose of this field is not yet known.


getFirmwareVersion

public java.lang.String getFirmwareVersion()
Returns the device's current firmware version.


getHardwareRevision

public long getHardwareRevision()
Returns the device's reported hardware revision.


getManufacturer

public java.lang.String getManufacturer()
Returns the name of the device's manufacturer.


getMaxPlaylistEntries

public long getMaxPlaylistEntries()
Returns the maximum number of playlist entries the device supports.


getName

public java.lang.String getName()
Returns the name of the device (the model).


getRecovery

public long getRecovery()
Returns a flag indicating whether or not the device is in recovery mode.


getRNSPrefix

public java.lang.String getRNSPrefix()
Returns the rns_prefix field. The purpose of this field is not yet known.


getRNSVersion

public long getRNSVersion()
Returns the rns_version field. The purpose of this field is not yet known.


getSerial

public long getSerial()
Returns the serial field. The purpose of this field is not yet known.


getStorageName

public java.lang.String getStorageName()
Returns the name of the storage device.


propertySet

public java.util.Set propertySet()

containsProperty

public boolean containsProperty(java.lang.String key)

getString

public java.lang.String getString(java.lang.String key)
Raw property access.


getLong

public long getLong(java.lang.String key)
Raw property access.