Package de.dermoba.srcp.common.exception

Examples of de.dermoba.srcp.common.exception.SRCPIOException


            listeners = new HashSet<CommandDataListener>();

        } catch (UnknownHostException e) {
            throw new SRCPHostNotFoundException();
        } catch (IOException e) {
            throw new SRCPIOException(e);
        }
    }
View Full Code Here


    public void connect() throws SRCPException {
        try {
            String incoming = in.readGreeting();
            informListenersReceived(incoming);
        } catch (IOException e) {
            throw new SRCPIOException();
        }
        send("SET CONNECTIONMODE SRCP COMMAND");
        String output = sendReceive("GO");
        String[] outputSplitted = output.split(" ");
View Full Code Here

    public void disconnect() throws SRCPException {
        try {
            // sendReceive("SESSION 0 TERM");
            socket.close();
        } catch (IOException e) {
            throw new SRCPIOException(e);
        }
    }
View Full Code Here

                output += "\n";
                out.write(output);
            }
            s = in.read();
            if (s == null) {
                throw new SRCPIOException();
            }
        } catch (IOException e) {
            throw new SRCPIOException();
        }
        informListenersReceived(s);
        return s;
    }
View Full Code Here

    private ReceivedExceptionFactory() throws SRCPIOException {
        try {
            URL url = this.getClass().getResource(EXCEPTIONS_FILE);
            load(url.openStream());
        } catch (IOException x) {
            throw new SRCPIOException(x);
        }
    }
View Full Code Here

                try {
                    ex = (SRCPException) (Class.forName(instance.get(strCode)
                            .toString()).newInstance());
                    ex.setRequestString(request);
                } catch (ClassNotFoundException x) {
                    throw new SRCPIOException();
                } catch (InstantiationException x) {
                    throw new SRCPIOException();
                } catch (IllegalAccessException x) {
                    throw new SRCPIOException();
                }
            }
        } catch (NumberFormatException x) {
            // null will be returned anyhow
        }
View Full Code Here

            infoThread.start();

        } catch (UnknownHostException e) {
            throw new SRCPHostNotFoundException();
        } catch (IOException e) {
            throw new SRCPIOException();
        }

    }
View Full Code Here

    public void disconnect() throws SRCPException {
        try {
            GMListeners.remove(CRCFHandle);
            socket.close();
        } catch (IOException e) {
            throw new SRCPIOException(e);
        }
    }
View Full Code Here

TOP

Related Classes of de.dermoba.srcp.common.exception.SRCPIOException

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.