jSyncManager

org.jSyncManager.API.Protocol.Util
Class DLPStorageInfo

java.lang.Object
  |
  +--org.jSyncManager.API.Protocol.Util.DLPStorageInfo
All Implemented Interfaces:
java.io.Serializable

public class DLPStorageInfo
extends java.lang.Object
implements java.io.Serializable

The DLP Storage Information class. This class holds information on the available system storage.

Version:
$Revision: 1.6 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: yaztromo $ on $Date: 2003/05/14 03:51:27 $.
See Also:
Serialized Form

Constructor Summary
DLPStorageInfo(byte[] arg1, byte[] arg2)
          Construct a new Storage Info object based on the received arguments.
 
Method Summary
 DLPCardInfo getCardInfo(int i)
          Get the Card Info object for the specified card, by index.
 boolean getHasMoreCards()
          Check to see if the handheld has more cards not reported by this object.
 int getNumCards()
          Gets the total number of cards available on the handheld.
 int getRamDatabaseCount()
          Gets the total count of RAM-based databases.
 int getRomDatabaseCount()
          Gets the total count of ROM-based databases.
 boolean hasExtendedResponse()
          Checks to see wether or not this object received an extended response.
 java.lang.String toString()
          Convert this object to a human-readable String.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DLPStorageInfo

public DLPStorageInfo(byte[] arg1,
                      byte[] arg2)
               throws DLPFunctionCallException
Construct a new Storage Info object based on the received arguments.
Parameters:
arg1 - the first argument received in response to the storage info request.
the - secord argument received, or null if no second argument was received.
Throws:
DLPFunctionCallException - if any parsing errors are detected.
Method Detail

getCardInfo

public DLPCardInfo getCardInfo(int i)
                        throws DLPFunctionCallException
Get the Card Info object for the specified card, by index.
Parameters:
i - the index of the card to query.
Throws:
DLPFunctionCallException - if the specified card doesn't exist.

getHasMoreCards

public boolean getHasMoreCards()
Check to see if the handheld has more cards not reported by this object.
Returns:
true if the handheld has more cards to report, false otherwise.

getNumCards

public int getNumCards()
Gets the total number of cards available on the handheld.
Returns:
the total number of cards available on the handheld.

getRamDatabaseCount

public int getRamDatabaseCount()
Gets the total count of RAM-based databases.
Returns:
the total count of RAM-based databases.

getRomDatabaseCount

public int getRomDatabaseCount()
Gets the total count of ROM-based databases.
Returns:
the total count of ROM-based databases.

hasExtendedResponse

public boolean hasExtendedResponse()
Checks to see wether or not this object received an extended response.
Returns:
true if an extended response was detected, false otherwise.

toString

public java.lang.String toString()
Convert this object to a human-readable String.
Overrides:
toString in class java.lang.Object
Returns:
this object as a human-readable String.

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.