/** * {@inheritDoc} */ @Override public void doCloseSend() throws IOException { if (out.isOpen()) { if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.log(Level.FINEST, "[{0}] Closing SEND", stack().name()); } IOUtils.closeQuietly(out); } }
/** * {@inheritDoc} */ @Override public void doCloseSend() throws IOException { if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.log(Level.FINEST, "[{0}] Closing SEND", stack().name()); } if (out.isOpen()) { IOUtils.closeQuietly(out); } }
/** * {@inheritDoc} */ @Override public void doCloseRecv() { if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.log(Level.FINEST, "[{0}] Closing RECV", stack().name()); } if (in.isOpen()) { IOUtils.closeQuietly(in); } }
continue; } finally { IOUtils.closeQuietly(fis);
/** * {@inheritDoc} */ @Override public void doCloseRecv() { if (in.isOpen()) { if (LOGGER.isLoggable(Level.FINEST)) { LOGGER.log(Level.FINEST, "[{0}] Closing RECV", stack().name()); } IOUtils.closeQuietly(in); // as soon as we close, the SelectionKey will become invalid and thus ready will never be called // hence we need to notify the rest of the stack about the recvClosed() onRecvClosed(); } }
IOUtils.closeQuietly(is);