Package de.dermoba.srcp.common

Examples of de.dermoba.srcp.common.TokenizedLine


        if (instance == null) {
            instance = new ReceivedExceptionFactory();
        }
        if (instance == null)
            return null;
        TokenizedLine line = new TokenizedLine(response);
        line.nextStringToken(); // timestamp
        SRCPException ex = null;
        try {
            String strCode = line.nextStringToken();
            Integer code = new Integer(strCode);
            if (code >= new Integer(400)) {
                try {
                    ex = (SRCPException) (Class.forName(instance.get(strCode)
                            .toString()).newInstance());
View Full Code Here


        listeners.remove(listener);
    }

    private void informListenersReceived(String s) {
        try {
            TokenizedLine tokenLine = new TokenizedLine(s);
            double timestamp = tokenLine.nextDoubleToken();
            int number = tokenLine.nextIntToken();
            if (number < 200) {
                tokenLine.nextStringToken();
                int bus = tokenLine.nextIntToken();
                String deviceGroup = tokenLine.nextStringToken().toUpperCase();
                if (deviceGroup.equals("FB")) {
                    handleFB(tokenLine, timestamp, number, bus);
                } else if (deviceGroup.equals("GA")) {
                    handleGA(tokenLine, timestamp, number, bus);
                } else if (deviceGroup.equals("GL")) {
View Full Code Here

TOP

Related Classes of de.dermoba.srcp.common.TokenizedLine

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.