/*** * Closes the connection to the NNTP server and sets to null * some internal data so that the memory may be reclaimed by the * garbage collector. The reply text and code information from the * last command is voided so that the memory it used may be reclaimed. * <p> * @throws IOException If an error occurs while disconnecting. ***/ @Override public void disconnect() throws IOException { super.disconnect(); _reader_ = null; _writer_ = null; _replyString = null; _isAllowedToPost = false; }
/*** * Closes the control connection to the FTP server and sets to null * some internal data so that the memory may be reclaimed by the * garbage collector. The reply text and code information from the * last command is voided so that the memory it used may be reclaimed. * Also sets {@link #_controlInput_} and {@link #_controlOutput_} to null. * * @throws IOException If an error occurs while disconnecting. ***/ @Override public void disconnect() throws IOException { super.disconnect(); _controlInput_ = null; _controlOutput_ = null; _newReplyString = false; _replyString = null; }
/*** * Disconnects from the server, closing all associated open sockets and * streams. * * @throws IOException If there an error occurs while disconnecting. ***/ @Override public void disconnect() throws IOException { if (_errorStream_ != null) { _errorStream_.close(); } _errorStream_ = null; super.disconnect(); }
/*** * Closes the connection to the SMTP server and sets to null * some internal data so that the memory may be reclaimed by the * garbage collector. The reply text and code information from the * last command is voided so that the memory it used may be reclaimed. * <p> * @throws IOException If an error occurs while disconnecting. ***/ @Override public void disconnect() throws IOException { super.disconnect(); _reader = null; _writer = null; _replyString = null; _replyLines.clear(); _newReplyString = false; }
/** * Disconnects the client from the server, and sets the state to * <code> DISCONNECTED_STATE </code>. The reply text information * from the last issued command is voided to allow garbage collection * of the memory used to store that information. * * @throws IOException If there is an error in disconnecting. */ @Override public void disconnect() throws IOException { super.disconnect(); _reader = null; __writer = null; _replyLines.clear(); setState(IMAPState.DISCONNECTED_STATE); }
/*** * Disconnects the client from the server, and sets the state to * <code> DISCONNECTED_STATE </code>. The reply text information * from the last issued command is voided to allow garbage collection * of the memory used to store that information. * * @throws IOException If there is an error in disconnecting. ***/ @Override public void disconnect() throws IOException { super.disconnect(); _reader = null; _writer = null; _lastReplyLine = null; _replyLines.clear(); setState(DISCONNECTED_STATE); }
/*** * Closes the connection to the NNTP server and sets to null * some internal data so that the memory may be reclaimed by the * garbage collector. The reply text and code information from the * last command is voided so that the memory it used may be reclaimed. * <p> * @exception IOException If an error occurs while disconnecting. ***/ @Override public void disconnect() throws IOException { super.disconnect(); _reader_ = null; _writer_ = null; _replyString = null; _isAllowedToPost = false; }
/*** * Closes the connection to the NNTP server and sets to null * some internal data so that the memory may be reclaimed by the * garbage collector. The reply text and code information from the * last command is voided so that the memory it used may be reclaimed. * <p> * @exception IOException If an error occurs while disconnecting. ***/ public void disconnect() throws IOException { super.disconnect(); _reader_ = null; _writer_ = null; _replyString = null; _isAllowedToPost = false; }
/*** * Closes the control connection to the FTP server and sets to null * some internal data so that the memory may be reclaimed by the * garbage collector. The reply text and code information from the * last command is voided so that the memory it used may be reclaimed. * Also sets {@link #_controlInput_} and {@link #_controlOutput_} to null. * <p> * @exception IOException If an error occurs while disconnecting. ***/ @Override public void disconnect() throws IOException { super.disconnect(); _controlInput_ = null; _controlOutput_ = null; _newReplyString = false; _replyString = null; }
/*** * Disconnects from the server, closing all associated open sockets and * streams. * <p> * @exception IOException If there an error occurs while disconnecting. ***/ public void disconnect() throws IOException { if (_errorStream_ != null) _errorStream_.close(); _errorStream_ = null; super.disconnect(); }
/*** * Disconnects from the server, closing all associated open sockets and * streams. * <p> * @exception IOException If there an error occurs while disconnecting. ***/ @Override public void disconnect() throws IOException { if (_errorStream_ != null) _errorStream_.close(); _errorStream_ = null; super.disconnect(); }
/*** * Closes the connection to the SMTP server and sets to null * some internal data so that the memory may be reclaimed by the * garbage collector. The reply text and code information from the * last command is voided so that the memory it used may be reclaimed. * <p> * @exception IOException If an error occurs while disconnecting. ***/ public void disconnect() throws IOException { super.disconnect(); _reader = null; _writer = null; _replyString = null; _replyLines.setSize(0); _newReplyString = false; }
/*** * Closes the connection to the SMTP server and sets to null * some internal data so that the memory may be reclaimed by the * garbage collector. The reply text and code information from the * last command is voided so that the memory it used may be reclaimed. * <p> * @exception IOException If an error occurs while disconnecting. ***/ @Override public void disconnect() throws IOException { super.disconnect(); _reader = null; _writer = null; _replyString = null; _replyLines.clear(); _newReplyString = false; }
protected void disconnect(SocketClient client) throws Exception { if (client.isConnected()) { client.disconnect(); } }
/*** * Disconnects the client from the server, and sets the state to * <code> DISCONNECTED_STATE </code>. The reply text information * from the last issued command is voided to allow garbage collection * of the memory used to store that information. * <p> * @exception IOException If there is an error in disconnecting. ***/ public void disconnect() throws IOException { super.disconnect(); _reader = null; __writer = null; _lastReplyLine = null; _replyLines.setSize(0); setState(DISCONNECTED_STATE); }
/*** * Disconnects the client from the server, and sets the state to * <code> DISCONNECTED_STATE </code>. The reply text information * from the last issued command is voided to allow garbage collection * of the memory used to store that information. * <p> * @exception IOException If there is an error in disconnecting. ***/ @Override public void disconnect() throws IOException { super.disconnect(); _reader = null; __writer = null; _lastReplyLine = null; _replyLines.setSize(0); setState(DISCONNECTED_STATE); }