Package com.zebra.sdk.printer.discovery
Class DiscoveredUsbPrinter
Object
com.zebra.sdk.printer.discovery.DiscoveredPrinter
com.zebra.sdk.printer.discovery.DiscoveredUsbPrinter
- All Implemented Interfaces:
Serializable
Instance of
DiscoveredPrinter that is returned when performing a search of
currently connected Zebra USB printers.- See Also:
-
Field Summary
Fields inherited from class com.zebra.sdk.printer.discovery.DiscoveredPrinter
address -
Constructor Summary
ConstructorsConstructorDescriptionDiscoveredUsbPrinter(String symbolicName) Returns an instance of aDiscoveredUsbPrinterbuilt using thesymbolicNamereturned byUsbDiscoverer.getZebraUsbPrinters()DiscoveredUsbPrinter(String symbolicName, Map<String, String> attributes) -
Method Summary
Modifier and TypeMethodDescriptionCreates a connection based on the information in the DiscoveredPrinter response.Methods inherited from class com.zebra.sdk.printer.discovery.DiscoveredPrinter
equals, getDiscoveryDataMap, hashCode, toString
-
Constructor Details
-
DiscoveredUsbPrinter
Returns an instance of aDiscoveredUsbPrinterbuilt using thesymbolicNamereturned byUsbDiscoverer.getZebraUsbPrinters()- Parameters:
symbolicName- - the symbolic name for the printer returned byUsbDiscoverer.getZebraUsbPrinters()- Throws:
ConnectionException- if a connection to the discover USB printer cannot be established
-
DiscoveredUsbPrinter
- Parameters:
symbolicName- - the symbolic name for the printer returned byUsbDiscoverer.getZebraUsbPrinters()attributes- a map of attributes associated with the discovered USB 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:
-