Package com.sshtools.j2ssh.transport

Examples of com.sshtools.j2ssh.transport.MessageStoreEOFException


                if (msg != null) {
                    msgdata = msg.getChannelData();
                    currentPos = 0;
                } else {
                    throw new MessageStoreEOFException();
                }
            } else {
                SshMsgChannelData msg = null;

                while ((msg == null) && !isClosed()) {
                    try {
                        log.debug("Waiting for channel data");
                        msg = (SshMsgChannelData) messageStore.getMessage(filter,
                                interrupt);
                    } catch (MessageNotAvailableException ex1) {
                        // Ignore the timeout but this allows us to review the
                        // InputStreams state once in a while
                    }
                }

                if (msg != null) {
                    msgdata = msg.getChannelData();
                    currentPos = 0;
                } else {
                    throw new MessageStoreEOFException();
                }
            }
        } finally {
            stopBlockingOperation();
        }
View Full Code Here


            } catch (InterruptedException e) {
            }
        }

        if (state.getValue() != OpenClosedState.OPEN) {
            throw new MessageStoreEOFException();
        }

        if (messages.size() > 0) {
            return (SubsystemMessage) messages.remove(0);
        } else {
View Full Code Here

            } catch (InterruptedException e) {
            }
        }

        if (state.getValue() != OpenClosedState.OPEN) {
            throw new MessageStoreEOFException();
        }

        if (messages.size() > 0) {
            return (SubsystemMessage) messages.remove(0);
        } else {
View Full Code Here

                if (msg != null) {
                    msgdata = msg.getChannelData();
                    currentPos = 0;
                } else {
                    throw new MessageStoreEOFException();
                }
            } else {
                SshMsgChannelData msg = null;

                while ((msg == null) && !isClosed()) {
                    try {
                        log.debug("Waiting for channel data");
                        msg = (SshMsgChannelData) messageStore.getMessage(filter,
                                interrupt);
                    } catch (MessageNotAvailableException ex1) {
                        // Ignore the timeout but this allows us to review the
                        // InputStreams state once in a while
                    }
                }

                if (msg != null) {
                    msgdata = msg.getChannelData();
                    currentPos = 0;
                } else {
                    throw new MessageStoreEOFException();
                }
            }
        } finally {
            stopBlockingOperation();
        }
View Full Code Here

TOP

Related Classes of com.sshtools.j2ssh.transport.MessageStoreEOFException

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.