public class

RfidFilter

extends Object
java.lang.Object
   ↳ com.datalogic.device.rfid.RfidFilter

Class Overview

Class RfidFilter defines a comparison rule used to select which RFID tags an operation should be applied to.

The filter matches a portion of a tag's memory against a provided byte sequence. Only tags whose memory content matches the filter criteria are affected by subsequent RFID operations.

This concept is typically used for selective read, write, or lock operations.

Summary

Public Constructors
RfidFilter(RfidMemoryBankRegion region, int address, byte[] dataToCompare)
Constructs an RFIDFilter with the specified parameters.
Public Methods
int getAddress()
Returns the address (in words) within the memory bank region where the comparison starts.
byte[] getData()
Returns the data used for comparison against the RFID tag's memory.
RfidMemoryBankRegion getRegion()
Returns the memory bank region used for filtering the RFID tag.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RfidFilter (RfidMemoryBankRegion region, int address, byte[] dataToCompare)

Added in revision 50

Constructs an RFIDFilter with the specified parameters.

Parameters
region The RfidMemoryBankRegion specifying the memory bank region to compare.
address The address within the memory bank region to start the comparison, expressed in words (1 word = 2 bytes).
dataToCompare The data to compare against the RFID tag's memory. The length of the data must be even, as RFID memory is word-addressable.
Throws
NullPointerException If dataToCompare is null.
IllegalArgumentException If the length of dataToCompare is not even.

Public Methods

public int getAddress ()

Added in revision 50

Returns the address (in words) within the memory bank region where the comparison starts.

Returns
  • The address as an integer, expressed in words.

public byte[] getData ()

Added in revision 50

Returns the data used for comparison against the RFID tag's memory.

Returns
  • A byte array containing the data to compare.

public RfidMemoryBankRegion getRegion ()

Added in revision 50

Returns the memory bank region used for filtering the RFID tag.

Returns