com.syncbuilder.device
Class StorageInfo

java.lang.Object
  |
  +--com.syncbuilder.device.StorageInfo

public class StorageInfo
extends java.lang.Object

Information about the Palm device's storage system.
Currently available Palm devices only have one built-in storage card which contains between 128KB and 2MB of RAM, and between 512KB and 2MB of ROM. This may change in future devices.
Palm devices running Palm OS 2.0+ are capable of reporting the number of databases which are contained in their storage system.
The information about the actual cards is stored in objects of the CardInfo class.

See Also:
CardInfo

Constructor Summary
StorageInfo()
           
StorageInfo(int ram_db_count, int rom_db_count)
           
 
Method Summary
 void addCardInfo(CardInfo card_info)
           
 CardInfo getCardInfo()
          This is a convenience method to retrieve the CardInfo object of the first built-in card.
 CardInfo getCardInfo(int index)
           
 int getCardInfoCount()
           
 int getRAMDBCount()
           
 int getROMDBCount()
           
 boolean isStorageInfoEx()
          Does this StorageInfo object contain information about the number of databases?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StorageInfo

public StorageInfo()

StorageInfo

public StorageInfo(int ram_db_count,
                   int rom_db_count)
Method Detail

getCardInfoCount

public int getCardInfoCount()

getCardInfo

public CardInfo getCardInfo(int index)

getCardInfo

public CardInfo getCardInfo()
This is a convenience method to retrieve the CardInfo object of the first built-in card.

addCardInfo

public void addCardInfo(CardInfo card_info)

isStorageInfoEx

public boolean isStorageInfoEx()
Does this StorageInfo object contain information about the number of databases?

getRAMDBCount

public int getRAMDBCount()

getROMDBCount

public int getROMDBCount()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


This material is Copyrighted (C) 1999 by Tilo Christ. All Rights Reserved.