Package uk.co.nimp.scard.log

Examples of uk.co.nimp.scard.log.StarScriptLogHandler


        }else
            terminal = Utilities.getTerminal(logHandler.getPrintStream(), allowDummySC);
        System.out.println("Connected to " + terminal.getName());
        if(logToStarScript){
            File logFile=new File("BasicCardReaderTaskExecutor - "+AFileUtilities.generateValidFileName(terminal.getName()+".starScript"));
            StarScriptLogHandler log=new StarScriptLogHandler(logFile);
            terminal.addLogHandler(log);
        }
        if(logToVerilogStimuli){
            File logFile=new File("BasicCardReaderTaskExecutor - "+AFileUtilities.generateValidFileName(terminal.getName()+".v"));
            VerilogStimuliLogHandler log=new VerilogStimuliLogHandler(logFile);
View Full Code Here


                        String name = baseName.substring(0, baseName.length() - ext.length()) + terminal.getName() + "." + ext;
                        //TODO: make sure that name don't contain forbiden characters like ":" and so on...
                        File logFile = new File(name);
                        logFiles.set(i, logFile);
                        PrintStream ps = new PrintStream(logFile);
                        StarScriptLogHandler starScriptLogHandler = new StarScriptLogHandler(ps);
                        terminal.addLogHandler(starScriptLogHandler);
                    }
                    System.out.println("Logging to " + outputFile.getCanonicalPath());
                    break;
                }
View Full Code Here

        }

        String name = AFileUtilities.appendToFileName(in, AFileUtilities.generateValidFileName(terminal.getName()));
        File targetFile = new File(name);
        checkParent(targetFile);
        StarScriptLogHandler starScriptGenerator = new StarScriptLogHandler(targetFile);
        terminal.addLogHandler(starScriptGenerator);
        logHandlersStack.push(starScriptGenerator);
        System.out.println("Star script generator target file: " + targetFile.getCanonicalPath());
        return true;
    }
View Full Code Here

TOP

Related Classes of uk.co.nimp.scard.log.StarScriptLogHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.