/plugins/FTP/tags/release-0-2-2/com/fooware/net/FtpOutputStream.java
# · Java · 48 lines · 15 code · 11 blank · 22 comment · 0 complexity · ebd565efa134bb8c6d3ff6f54237c311 MD5 · raw file
- /*************************************************************************
- * Copyright (C) 1998, Chris Cheetham, fooware *
- * Distributed under the GNU General Public License *
- * http://www.fsf.org/copyleft/gpl.html *
- *************************************************************************/
- package com.fooware.net;
- import java.io.FilterOutputStream;
- import java.io.OutputStream;
- import java.io.IOException;
- /**
- * @author <A HREF="mailto:cheetham@fooware.com">Chris Cheetham</A>
- * @version $Revision: 1842 $
- **/
- public class FtpOutputStream extends FilterOutputStream {
- //
- // constructors
- //
- /**
- * Contruct an FtpOutputStream for the specified FtpClient.
- **/
- FtpOutputStream(OutputStream ostr, FtpClient client) throws IOException {
- super(ostr);
- this.client = client;
- }
- /**
- * Close the underlying Writer and signal the FtpClient that
- * Writer processing has completed.
- **/
- public void close() throws IOException {
- super.close();
- client.closeTransferSocket();
- }
- //
- // member variables
- //
- private FtpClient client;
- }