opencard.opt.iso.fs
Class CardRecord
java.lang.Object
|
+--opencard.opt.iso.fs.CardRecord
- public class CardRecord
- extends java.lang.Object
The CardRecord class is used by the CardRandomRecordAccess
and CardRandomByteAccess classes. Essentially, it just is an
encapsulation of a byte array.
- Version:
- $Id: CardRecord.java,v 1.2 1999/11/03 12:37:18 damke Exp $
- See Also:
CardRandomRecordAccess,
CardRandomByteAccess
|
Field Summary |
protected byte[] |
record
The underlying byte array. |
|
Constructor Summary |
CardRecord(byte[] b)
Instantiate a CardRecord using an already
allocated byte array. |
CardRecord(int size)
Instantiate an empty CardRecord. |
|
Method Summary |
byte[] |
bytes()
Return the bytes contained in the record. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
record
protected byte[] record
- The underlying byte array.
CardRecord
public CardRecord(int size)
- Instantiate an empty CardRecord.
- Parameters:
size - The size of the new CardRecord.
CardRecord
public CardRecord(byte[] b)
- Instantiate a CardRecord using an already
allocated byte array.
- Parameters:
b - The byte array to use for the CardRecord.
bytes
public byte[] bytes()
- Return the bytes contained in the record.
- Returns:
- contents of the record.
|