public class DiscoveredCardPrinterNetwork extends DiscoveredPrinter
DiscoveredPrinter
that is returned when performing a network discovery for card printers.address
Constructor and Description |
---|
DiscoveredCardPrinterNetwork(java.util.Map<String,String> attributes)
Returns an instance of a
DiscoveredCardPrinterNetwork built using the provided attributes. |
DiscoveredCardPrinterNetwork(String address,
int port)
Returns an instance of a
DiscoveredCardPrinterNetwork with ipAddress and port . |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Creates a connection based on the information in the DiscoveredPrinter response.
|
equals, getDiscoveryDataMap, hashCode, toString
public DiscoveredCardPrinterNetwork(String address, int port)
DiscoveredCardPrinterNetwork
with ipAddress
and port
.address
- the address of the discovered network printerport
- the active raw port of the discovered network printerpublic DiscoveredCardPrinterNetwork(java.util.Map<String,String> attributes)
DiscoveredCardPrinterNetwork
built using the provided attributes.attributes
- a map of attributes associated with the discovered network printerpublic Connection getConnection()
DiscoveredPrinter
getConnection
in class DiscoveredPrinter
Connection
to the discovered printerDiscoveredPrinter.getConnection()
© 2016 ZIH Corp. All Rights Reserved.