public abstract class RFID
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CARD_SUPPORT_FELICA
FeliCa card.
|
static int |
CARD_SUPPORT_ISO15
ISO15 card.
|
static int |
CARD_SUPPORT_JEWEL
JEWEL card.
|
static int |
CARD_SUPPORT_NFC
NFC card.
|
static int |
CARD_SUPPORT_STSRI
ST SRI card.
|
static int |
CARD_SUPPORT_TYPE_A
TYPE A card.
|
static int |
CARD_SUPPORT_TYPE_B
TYPE B card.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close attached streams and release associated resources.
|
java.lang.String |
getLastError()
Get last error.
|
protected abstract void |
onDataReceived(byte[] data,
int size)
Abstract method that is called when data is received.
|
static void |
setDebug(boolean on)
Turn on/off debugging.
|
protected void |
writeBlock(byte[] b,
int offset,
int length)
Writes length bytes from the specified byte array to this printer.
|
public static final int CARD_SUPPORT_TYPE_A
public static final int CARD_SUPPORT_TYPE_B
public static final int CARD_SUPPORT_FELICA
public static final int CARD_SUPPORT_NFC
public static final int CARD_SUPPORT_JEWEL
public static final int CARD_SUPPORT_ISO15
public static final int CARD_SUPPORT_STSRI
public static void setDebug(boolean on)
on
- the debugging state.protected abstract void onDataReceived(byte[] data, int size)
data
- data buffer.size
- data size.protected void writeBlock(byte[] b, int offset, int length) throws java.io.IOException
b
- byte array.offset
- data offset.length
- data length.java.io.IOException
- if an I/O error occurs.public java.lang.String getLastError()
public void close()