|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fosstrak.hal.util.RFIDTools
public class RFIDTools
This class is an abstraction for the RFID tags. A tag has a serial number and depending on the application data memory.
Copyright: Copyright (c) 2002
| Field Summary | |
|---|---|
static int |
ISO_15693
Tag-it HF-i or other ISO 15693 compliant transponders |
static int |
SERIAL_NR_SIZE
size of serial number |
static int |
TAG_IT_HF
Tag-it HF |
| Constructor Summary | |
|---|---|
RFIDTools(byte[] snr,
int offset,
int type,
int dsfID)
creates a RFIDTag with the gifen parameter |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
clones the RFID tag. |
boolean |
equals(java.lang.Object tag)
checks tags |
static java.lang.String |
getChar(byte[] data)
|
static java.lang.String |
getData(byte[] data)
|
static java.lang.String |
getDataWithSpace(byte[] data)
|
static java.lang.String |
getDataWithSpaceLength(byte[] data,
int l)
|
java.lang.String |
getSerial()
gets the serial number of the tag as a String in hex format. |
static java.lang.String |
getSerialFromByteArray(byte[] snr,
int offset)
|
java.lang.String |
getSerialWithSpace()
gets the serial number of the tag as a String where each byte is in hex format and separated by a space. |
byte[] |
getSNR()
gets the serial number |
int |
hashCode()
gets the hash code of the serial number |
boolean |
hasSNR(byte[] data)
checks the serial number |
boolean |
hasSNR(byte[] data,
int offset,
int length)
checks the serial number |
static java.lang.String |
hexByte(int b)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SERIAL_NR_SIZE
public static final int TAG_IT_HF
public static final int ISO_15693
| Constructor Detail |
|---|
public RFIDTools(byte[] snr,
int offset,
int type,
int dsfID)
snr - serial number of the transponderoffset - offset of the serial numbertype - transponder typedsfID - data storage family identifier| Method Detail |
|---|
public static java.lang.String hexByte(int b)
public static java.lang.String getData(byte[] data)
public static java.lang.String getDataWithSpace(byte[] data)
public static java.lang.String getDataWithSpaceLength(byte[] data,
int l)
public static java.lang.String getChar(byte[] data)
public static java.lang.String getSerialFromByteArray(byte[] snr,
int offset)
public byte[] getSNR()
public java.lang.String getSerialWithSpace()
public java.lang.String getSerial()
public boolean hasSNR(byte[] data)
data - to compared serial number
public boolean hasSNR(byte[] data,
int offset,
int length)
data - to compared serial numberoffset - start positionlength - lebgth of serial number
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object tag)
equals in class java.lang.Objecttag - tag to compare
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||