Sha256: 61c12459c0053db7a0c66e428254ed11557c907902a5f6c03a9f5ab8178803ba
Contents?: true
Size: 593 Bytes
Versions: 14
Compression:
Stored size: 593 Bytes
Contents
/** * */ package com.rho.rhoelements.apd.transport; import com.rho.rhoelements.apd.ApdConfiguration; import com.rho.rhoelements.apd.ApdConfiguration.Transport; /** * @author FPC843 * */ public class ApdTransportFactory { public static ApdTransport createTransport(ApdConfiguration printer) throws Exception { ApdTransport res = null; if (printer != null) { if (printer.getTransport() == Transport.Bluetooth) { res = new ApdBluetooth(printer); } else if (printer.getTransport() == Transport.Wlan) { res = new ApdWlan(printer); } } return res; } }
Version data entries
14 entries across 14 versions & 1 rubygems