public class DiscoveredUsbPrinter extends DiscoveredPrinter
DiscoveredPrinter that is returned when performing a search of
currently connected Zebra USB printers.address| Constructor and Description |
|---|
DiscoveredUsbPrinter(String symbolicName)
Returns an instance of a
DiscoveredUsbPrinter built using the symbolicName returned by
UsbDiscoverer.getZebraUsbPrinters() |
DiscoveredUsbPrinter(String symbolicName,
Map<String,String> attributes)
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection()
Creates a connection based on the information in the DiscoveredPrinter response.
|
equals, getDiscoveryDataMap, hashCode, toStringpublic DiscoveredUsbPrinter(String symbolicName) throws ConnectionException
DiscoveredUsbPrinter built using the symbolicName returned by
UsbDiscoverer.getZebraUsbPrinters()symbolicName - - the symbolic name for the printer returned by
UsbDiscoverer.getZebraUsbPrinters()ConnectionException - if a connection to the discover USB printer cannot be establishedpublic DiscoveredUsbPrinter(String symbolicName, Map<String,String> attributes)
symbolicName - - the symbolic name for the printer returned by
UsbDiscoverer.getZebraUsbPrinters()attributes - a map of attributes associated with the discovered USB printerpublic Connection getConnection()
DiscoveredPrintergetConnection in class DiscoveredPrinterConnection to the discovered printerDiscoveredPrinter.getConnection()
© 2015 ZIH Corp. All Rights Reserved.