Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

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`

Field Detail

### record

    protected byte[] record

  The underlying byte array.

Constructor Detail

### 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`.

Method Detail

### bytes

    public byte[] bytes()

  Return the bytes contained in the record.

  Returns:
    contents of the record.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD