org.jSyncManager.API.Protocol.Util

Class DLPExpansionCardInfo


public class DLPExpansionCardInfo
extends java.lang.Object

A class to contain the information on an expansion card. Expansion card information is available through a set of strings.

Field Summary

static int
HAS_STORAGE
A constant flag denoting that this card supports reading and writing sectors of data.
static int
READ_ONLY
A constant flag denoting that this card is read-only.
static int
SUPPORTS_DUMB_SERIAL
A constant flag denoting that this card supports a dumb serial interface.

Constructor Summary

DLPExpansionCardInfo(byte[] pkt)
Constructs a new DLPExpansionCardInfo object from the given data packet.

Method Summary

int
getCapabilityFlags()
Retrieves the capability flags bitmap.
String
getString(int index)
Retrieves the string at the given index.
int
getStringCount()
Retrieves the number of info strings contained in this object.
String
toString()
Converts this object to a human-readable String.

Field Details

HAS_STORAGE

public static final int HAS_STORAGE
A constant flag denoting that this card supports reading and writing sectors of data.
Field Value:
1

READ_ONLY

public static final int READ_ONLY
A constant flag denoting that this card is read-only.
Field Value:
2

SUPPORTS_DUMB_SERIAL

public static final int SUPPORTS_DUMB_SERIAL
A constant flag denoting that this card supports a dumb serial interface.
Field Value:
4

Constructor Details

DLPExpansionCardInfo

public DLPExpansionCardInfo(byte[] pkt)
Constructs a new DLPExpansionCardInfo object from the given data packet.
Parameters:
pkt - a data packet containing card information.

Method Details

getCapabilityFlags

public int getCapabilityFlags()
Retrieves the capability flags bitmap.
Returns:
the capability flags bitmap.

getString

public String getString(int index)
Retrieves the string at the given index.
Parameters:
index - the index of the string to retrieve.
Returns:
the string at the selected index.

getStringCount

public int getStringCount()
Retrieves the number of info strings contained in this object.
Returns:
the number of info strings contained in this object.

toString

public String toString()
Converts this object to a human-readable String.
Returns:
this object to a human-readable String.