opencard.opt.terminal
Interface TerminalCommand


public abstract interface TerminalCommand

TerminalCommand is a generic interface for sending commands to a CardTerminal.

See Also:
CardTerminal

Method Summary
 byte[] sendTerminalCommand(byte[] cmd)
          Send a command to the terminal.
 

Method Detail

sendTerminalCommand

public byte[] sendTerminalCommand(byte[] cmd)
                           throws opencard.core.terminal.CardTerminalException
Send a command to the terminal.
Parameters:
cmd - A byte[] containing the command to be send to the card terminal.
Returns:
A byte[] with the result (null if no result is available).
Throws:
CardTerminalException; -