StringParser sf = new StringParser(props.getProperty("machine.fiscalprinter"));
String sFiscalType = sf.nextToken(':');
String sFiscalParam1 = sf.nextToken(',');
try {
if ("javapos".equals(sFiscalType)) {
m_deviceFiscal = new DeviceFiscalPrinterJavaPOS(sFiscalParam1);
} else {
m_deviceFiscal = new DeviceFiscalPrinterNull();
}
} catch (TicketPrinterException e) {
m_deviceFiscal = new DeviceFiscalPrinterNull(e.getMessage());