org.jSyncManager.API.Protocol.Util

Class DLPCardInfo

Implemented Interfaces:
Serializable

public class DLPCardInfo
extends java.lang.Object
implements 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.

Constructor Summary

DLPCardInfo(data[] )
Construct a new Card Info object using the specified card info byte array.

Method Summary

String
getCardManufacturer()
Retreives the name of the cards manufacturer.
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.
String
toString()
Converts the contents of the Card Info object to a human-readable String.

Constructor Details

DLPCardInfo

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

Method Details

getCardManufacturer

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

getCardName

public 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 String toString()
Converts the contents of the Card Info object to a human-readable String.
Returns:
the contents of the Card Info object to a human-readable String.