public class RFIDReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
Actions |
Actions
Instance of Actions Class for all Actions related Operation like Inventory,Access.
|
Config |
Config
Instance of Config Class for all Config related Operations
|
Events |
Events
Instance of Event Class for all Event related Operations
|
ReaderCapabilities |
ReaderCapabilities
Access the Reader Capabilities
|
com.zebra.rfid.api3.SecureConnectionInfo |
SecureConnectionInfo |
Constructor and Description |
---|
RFIDReader()
The constructor
|
RFIDReader(java.lang.String hostName,
int port,
int timeoutMilliseconds)
Constructor takes host name or IP address, port and timeout as parameter
|
RFIDReader(java.lang.String hostName,
int port,
int timeoutMilliseconds,
java.lang.String Protocol,
java.lang.String Transport)
Constructor takes host name or IP address, port and timeout as parameter
|
Modifier and Type | Method and Description |
---|---|
void |
AcceptConnection(long readerSocket) |
void |
connect()
Connects to the reader
|
void |
disconnect()
Disconnect from the reader
|
void |
Dispose()
Disposes the RFIDReader
|
protected void |
finalize() |
java.lang.String |
getHostName()
Gets the host name or IP Address of the reader
|
java.lang.String |
getPassword() |
int |
getPort()
Gets the port number which is used for establishing connection
with the reader
|
int |
getTimeout()
Gets the timeout of the reader connection
|
boolean |
isCapabilitiesReceived()
Returns the current reader capabilities status
|
boolean |
isConnected()
Returns the current reader connection status
|
void |
PostConnectReaderUpdate()
Update reader caps and init again in case of region and batch mode and password scenarios
|
void |
reconnect()
Reconnects to the reader, if the connection is lost.
|
void |
setHostName(java.lang.String hostName)
Sets the host name or IP Address of the reader
|
void |
setPassword(java.lang.String password) |
void |
setPort(int port)
Sets the port number which is used for establishing connection
with the reader.
|
void |
setTimeout(int timeout)
Sets the Time out for the response from the Reader, if
specified zero(0), the default time out 5000 (5sec) will be used.
|
VersionInfo |
versionInfo()
Gets the RFID class library version information
|
public com.zebra.rfid.api3.SecureConnectionInfo SecureConnectionInfo
public Config Config
public Actions Actions
public Events Events
public ReaderCapabilities ReaderCapabilities
public RFIDReader()
public RFIDReader(java.lang.String hostName, int port, int timeoutMilliseconds)
hostName
- String containing the reader's Host name or IP Address of the Reader.port
- Reader Port number, if specified as Zero (0), the default port 5084 will be usedtimeoutMilliseconds
- Time out for the response from the Reader, if
specified zero(0), the default time out 5000 (5sec) will be used. The lowest possible value could be 2sec.
This value also translates to keep-alive timeout. If the connection to the reader was inactive (no keep-alive
message from the Reader) for a time greater than 10 times the timeout, DISCONNECTION_EVENT
will be triggered to the application, if the application has registered for the same.public RFIDReader(java.lang.String hostName, int port, int timeoutMilliseconds, java.lang.String Protocol, java.lang.String Transport)
hostName
- String containing the reader's Host name or IP Address of the Reader.port
- Reader Port number, if specified as Zero (0), the default port 5084 will be usedtimeoutMilliseconds
- Time out for the response from the Reader, if
specified zero(0), the default time out 5000 (5sec) will be used. The lowest possible value could be 2sec.
This value also translates to keep-alive timeout. If the connection to the reader was inactive (no keep-alive
message from the Reader) for a time greater than 10 times the timeout, DISCONNECTION_EVENT
will be triggered to the application, if the application has registered for the same.Protocol
- ReaderTransport
- Readerpublic void PostConnectReaderUpdate() throws InvalidUsageException, OperationFailureException
protected void finalize() throws InvalidUsageException, OperationFailureException
finalize
in class java.lang.Object
InvalidUsageException
OperationFailureException
public void Dispose() throws java.lang.Exception
java.lang.Exception
public int getPort()
public void setPort(int port)
public int getTimeout()
public void setTimeout(int timeout)
public java.lang.String getHostName()
public void setHostName(java.lang.String hostName)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public boolean isConnected()
public boolean isCapabilitiesReceived()
public VersionInfo versionInfo() throws InvalidUsageException
InvalidUsageException
public void connect() throws InvalidUsageException, OperationFailureException
public void AcceptConnection(long readerSocket) throws InvalidUsageException, OperationFailureException
public void reconnect() throws InvalidUsageException, OperationFailureException
public void disconnect() throws InvalidUsageException, OperationFailureException