public class DiscoveredPrinterNetwork extends DiscoveredPrinter
DiscoveredPrinter that is returned when performing a network
discovery.address| Constructor and Description |
|---|
DiscoveredPrinterNetwork(java.util.Map<String,String> attributes)
Returns an instance of a
DiscoveredPrinterNetwork built using the provided attributes. |
DiscoveredPrinterNetwork(String address,
int port)
Returns an instance of a
DiscoveredPrinterNetwork with ipAddress and port. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object rhs)
Returns true if two discovered printer objects have the same address, otherwise it returns false.
|
Connection |
getConnection()
Creates a connection based on the information in the DiscoveredPrinter response.
|
int |
hashCode()
Returns a hash code for this DiscoveredPrinter.
|
getDiscoveryDataMap, toStringpublic DiscoveredPrinterNetwork(String address,
int port)
DiscoveredPrinterNetwork with ipAddress and port.address - the address of the discovered network printerport - the active raw port of the discovered network printerpublic DiscoveredPrinterNetwork(java.util.Map<String,String> attributes)
DiscoveredPrinterNetwork built using the provided attributes.attributes - a map of attributes associated with the discovered network printerpublic Connection getConnection()
DiscoveredPrintergetConnection in class DiscoveredPrinterConnection to the discovered printerDiscoveredPrinter.getConnection()public boolean equals(Object rhs)
DiscoveredPrinterequals in class DiscoveredPrinterrhs - DiscoveredPrinter object to compare against.DiscoveredPrinter.equals(java.lang.Object)public int hashCode()
hashCode in class DiscoveredPrinterObject.hashCode()
© 2017 ZIH Corp. All Rights Reserved.