protected class

FtpURLConnection.FtpOutputStream

extends FilterOutputStream
java.lang.Object
   ↳ java.io.OutputStream
     ↳ java.io.FilterOutputStream
       ↳ sun.net.www.protocol.ftp.FtpURLConnection.FtpOutputStream

Class Overview

For FTP URLs we need to have a special OutputStream because we need to close 2 sockets after we're done with it : - The Data socket (for the file). - The command socket (FtpClient). Since that's the only class that needs to see that, it is an inner class.

Summary

[Expand]
Inherited Fields
From class java.io.FilterOutputStream
Public Methods
void close()
Closes this output stream and releases any system resources associated with the stream.
[Expand]
Inherited Methods
From class java.io.FilterOutputStream
From class java.io.OutputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable

Public Methods

public void close ()

Closes this output stream and releases any system resources associated with the stream.

The close method of FilterOutputStream calls its flush method, and then calls the close method of its underlying output stream.

Throws
IOException