jSyncManager

org.jSyncManager.API.Protocol.Util
Class DLPCardInfo

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

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

A class to hold information on a handheld memory card. This class hold info on memory card information. As this information is typically burned into the memory card itself, instancef of this class is not writable to the handheld.

Version:
$Revision: 1.7 $
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
DLPCardInfo(byte[] data)
          Construct a new Card Info object using the specified card info byte array.
 
Method Summary
 java.lang.String getCardManufacturer()
          Retreives the name of the cards manufacturer.
 java.lang.String getCardName()
          Retreives the name of the card.
 int getCardNumber()
          Retreives the card number.
 int getCardVersion()
          Retreives the cards version information.
 DLP_Date getCreationTime()
          Retreives the creation time.
 int getFreeRam()
          Retreives the amount of free RAM.
 int getRamSize()
          Retreives the total RAM size of the card.
 int getRomSize()
          Retreives the total ROM size of the card.
 java.lang.String toString()
          Converts the contents of the Card Info 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

DLPCardInfo

public DLPCardInfo(byte[] data)
            throws DLPFunctionCallException
Construct a new Card Info object using the specified card info byte array.
Parameters:
data - a byte array containing PalmOS formatted card information.
Throws:
DLPFunctionCallException - thrown if an error occurs parsing the card info byte array.
Method Detail

getCardManufacturer

public java.lang.String getCardManufacturer()
Retreives the name of the cards manufacturer.
Returns:
the name of the cards manufacturer.

getCardName

public java.lang.String getCardName()
Retreives the name of the card.
Returns:
the name of the card.

getCardNumber

public int getCardNumber()
Retreives the card number.
Returns:
the card number.

getCardVersion

public int getCardVersion()
Retreives the cards version information.
Returns:
the cards version information.

getCreationTime

public DLP_Date getCreationTime()
Retreives the creation time.
Returns:
the creation time.

getFreeRam

public int getFreeRam()
Retreives the amount of free RAM.
Returns:
the amount of free RAM.

getRamSize

public int getRamSize()
Retreives the total RAM size of the card.
Returns:
the total RAM size of the card.

getRomSize

public int getRomSize()
Retreives the total ROM size of the card.
Returns:
the total ROM size of the card.

toString

public java.lang.String toString()
Converts the contents of the Card Info object to a human-readable String.
Overrides:
toString in class java.lang.Object
Returns:
the contents of the Card Info object to a human-readable String.

jSyncManager

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