/** * <p> * Tells whether or not this channel is closed. * </p> * * @return <tt>true</tt> if, and only if, this channel is closed */ public boolean isClosed() { return !isOpen(); }
public void close(boolean force) throws IOException { if (isOpen() || force ) close(); } /**
@Override public boolean isClosed() { return closed || !getSocket().isOpen(); }
public void close(boolean force) throws IOException { if (isOpen() || force ) close(); } /**
/** * Close the connection. * * @param force Should the underlying socket be forcibly closed? * * @throws IOException If closing the secure channel fails. */ public void close(boolean force) throws IOException { if (isOpen() || force ) close(); }
public void close(boolean force) throws IOException { if (isOpen() || force ) close(); } /**
public void close(boolean force) throws IOException { if (isOpen() || force ) close(); } /**
public void close(boolean force) throws IOException { if (isOpen() || force ) close(); } /**
/** * Try to close this channel. If the channel is already closed or the * {@code force} parameter is false, nothing will happen. This method has an * impact only if the channel is open and the {@code force} parameter is * <tt>true</tt> * * @param force * a boolean value indicating if we need to force closing the * channel * @throws IOException */ public void close(boolean force) throws IOException { if (isOpen() && force) { this.close(); } }
if (setChannelOptions(channel) && channel.isOpen()) { if (channel.isSecure()) { handshake(channel);