Package com.zebra.sdk.printer.discovery
Class DiscoveredPrinterNetwork
Object
com.zebra.sdk.printer.discovery.DiscoveredPrinter
com.zebra.sdk.printer.discovery.DiscoveredPrinterNetwork
- All Implemented Interfaces:
Serializable
Instance of
DiscoveredPrinter that is returned when performing a network
discovery.- See Also:
-
Field Summary
Fields inherited from class com.zebra.sdk.printer.discovery.DiscoveredPrinter
address -
Constructor Summary
ConstructorsConstructorDescriptionDiscoveredPrinterNetwork(String address, int port) Returns an instance of aDiscoveredPrinterNetworkwithipAddressandport.DiscoveredPrinterNetwork(Map<String, String> attributes) Returns an instance of aDiscoveredPrinterNetworkbuilt using the provided attributes. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if two discovered printer objects have the same address, otherwise it returns false.Creates a connection based on the information in the DiscoveredPrinter response.inthashCode()Returns a hash code for this DiscoveredPrinter.Methods inherited from class com.zebra.sdk.printer.discovery.DiscoveredPrinter
getDiscoveryDataMap, toString
-
Constructor Details
-
DiscoveredPrinterNetwork
Returns an instance of aDiscoveredPrinterNetworkwithipAddressandport.- Parameters:
address- the address of the discovered network printerport- the active raw port of the discovered network printer
-
DiscoveredPrinterNetwork
Returns an instance of aDiscoveredPrinterNetworkbuilt using the provided attributes.- Parameters:
attributes- a map of attributes associated with the discovered network printer
-
-
Method Details
-
getConnection
Description copied from class:DiscoveredPrinterCreates a connection based on the information in the DiscoveredPrinter response.- Specified by:
getConnectionin classDiscoveredPrinter- Returns:
- a
Connectionto the discovered printer - See Also:
-
equals
Description copied from class:DiscoveredPrinterReturns true if two discovered printer objects have the same address, otherwise it returns false.- Overrides:
equalsin classDiscoveredPrinter- Parameters:
rhs- DiscoveredPrinter object to compare against.- See Also:
-
hashCode
public int hashCode()Returns a hash code for this DiscoveredPrinter.- Overrides:
hashCodein classDiscoveredPrinter- See Also:
-