|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thingmagic.ReaderUtil
public class ReaderUtil
Constructor Summary | |
---|---|
ReaderUtil()
|
Method Summary | |
---|---|
static java.lang.String |
arrayToString(java.lang.String[] a,
java.lang.String separator)
|
static int[] |
buildIntArray(java.util.List<java.lang.Integer> integers)
convert Integer List to primitive int array |
static java.lang.String |
byteArrayToHexString(byte[] in)
convert byte array to hex string |
static int |
byteArrayToInt(byte[] data,
int offset)
|
static long |
byteArrayToLong(byte[] data)
|
static short |
byteArrayToShort(byte[] bytes,
int offset)
|
static short[] |
convertByteArrayToShortArray(byte[] byteData)
convert byte array to short array |
static byte[] |
convertListToBytes(java.util.List<java.lang.String> strList)
Utility method to convert List |
static java.lang.String |
convertListToString(java.util.List<java.lang.String> strList,
java.lang.String delimiter)
Utility method to convert List |
static byte[] |
convertShortArraytoByteArray(short[] shortData)
convert short array to byte array |
static void |
firmwareLoadUtil(java.io.InputStream fwStr,
Reader reader,
FirmwareLoadOptions loadOptions)
Firmware load on ThingMagic Readers using web requests. |
static long |
getBits(long raw,
int offset,
int length)
|
static byte[] |
hexStringToByteArray(java.lang.String hexStr)
Utility method to convert hex string to byte array |
static long |
initBits(long raw,
int offset,
int length,
long value,
java.lang.String desc)
|
static byte[] |
intToByteArray(int value)
|
static java.lang.String |
join(java.lang.String delim,
java.lang.String[] data)
|
static byte[] |
longToBytes(long v)
|
static long |
makeBitMask(int offset,
int length)
|
static void |
removeDuplicates(java.util.List<TagReadData> tagvec,
java.lang.Object uniqueByAntenna,
java.lang.Object uniqueByData,
java.lang.Object highestRSSI)
De-duplication logic |
static byte[] |
shortToByteArray(short s)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReaderUtil()
Method Detail |
---|
public static void removeDuplicates(java.util.List<TagReadData> tagvec, java.lang.Object uniqueByAntenna, java.lang.Object uniqueByData, java.lang.Object highestRSSI) throws ReaderException
tagvec
-
ReaderException
public static java.lang.String byteArrayToHexString(byte[] in)
in
- Input array of bytes to be converted
public static byte[] hexStringToByteArray(java.lang.String hexStr)
hexStr
- The input hex string
public static java.lang.String arrayToString(java.lang.String[] a, java.lang.String separator)
public static byte[] convertListToBytes(java.util.List<java.lang.String> strList)
strList
- Input list of strings.
public static java.lang.String convertListToString(java.util.List<java.lang.String> strList, java.lang.String delimiter)
strList
- Input list of stringsdelimiter
- Delimeter
public static byte[] convertShortArraytoByteArray(short[] shortData)
shortData
-
public static byte[] shortToByteArray(short s)
public static long byteArrayToLong(byte[] data)
public static java.lang.String join(java.lang.String delim, java.lang.String[] data)
public static short byteArrayToShort(byte[] bytes, int offset)
public static short[] convertByteArrayToShortArray(byte[] byteData)
byteData
-
public static int byteArrayToInt(byte[] data, int offset)
public static byte[] intToByteArray(int value)
public static byte[] longToBytes(long v)
public static int[] buildIntArray(java.util.List<java.lang.Integer> integers)
integers
-
public static long makeBitMask(int offset, int length)
public static long getBits(long raw, int offset, int length)
public static long initBits(long raw, int offset, int length, long value, java.lang.String desc)
public static void firmwareLoadUtil(java.io.InputStream fwStr, Reader reader, FirmwareLoadOptions loadOptions) throws ReaderException, java.io.IOException
fwStr
- reader
- loadOptions
-
ReaderException
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |