protected void printEntries(Iterator entriesIterator) { StringBuffer sb = new StringBuffer(); sb.append("<printEntries>\n"); int count = 0; while (entriesIterator.hasNext()) { JposEntry entry = (JposEntry) entriesIterator.next(); sb.append("entry" + count + ".LogicalName = " + entry.getLogicalName() + "\n"); count++; } sb.append("</printEntries>\n"); println(sb.toString()); }
public void init(JposEntry entry) { driverName = (String) entry.getPropertyValue("driverName"); portName = (String) entry.getPropertyValue("portName"); baudRate = (String) entry.getPropertyValue("baudRate"); byteSize = (String) entry.getPropertyValue("byteSize"); parity = (String) entry.getPropertyValue("parity"); stopBits = (String) entry.getPropertyValue("stopBits"); value1 = (String) entry.getPropertyValue("value1"); value2 = (String) entry.getPropertyValue("value2"); value3 = (String) entry.getPropertyValue("value3"); value4 = (String) entry.getPropertyValue("value4"); value5 = (String) entry.getPropertyValue("value5"); System.out.println(driverName); // loadLibrary(driverName); initPrinter(); }