public class VSmartCardTCPProtocol extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
APDU |
static int |
GET_ATR |
static int |
POWER_OFF |
static int |
POWER_ON |
static int |
RESET |
| Constructor and Description |
|---|
VSmartCardTCPProtocol() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(String host,
int port) |
void |
disconnect() |
boolean |
isClosed() |
int |
readCommand() |
byte[] |
readData() |
void |
writeData(byte[] data) |
public static final int POWER_OFF
public static final int POWER_ON
public static final int RESET
public static final int GET_ATR
public static final int APDU
public void connect(String host, int port) throws IOException
IOExceptionpublic void disconnect()
public boolean isClosed()
public int readCommand()
throws IOException
IOExceptionpublic byte[] readData()
throws IOException
IOExceptionpublic void writeData(byte[] data)
throws IOException
IOException