Class FtpFileObject.FtpOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.BufferedOutputStream
-
- org.apache.commons.vfs2.util.MonitorOutputStream
-
- org.apache.commons.vfs2.provider.ftp.FtpFileObject.FtpOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
- Enclosing class:
- FtpFileObject
private class FtpFileObject.FtpOutputStream extends MonitorOutputStream
An OutputStream that monitors for end-of-file.
-
-
Constructor Summary
Constructors Constructor Description FtpOutputStream(FtpClient client, java.io.OutputStream outstr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onClose()
Called after this stream is closed.-
Methods inherited from class org.apache.commons.vfs2.util.MonitorOutputStream
assertOpen, close, flush, write, write, write
-
-
-
-
Field Detail
-
client
private final FtpClient client
-
-
Constructor Detail
-
FtpOutputStream
public FtpOutputStream(FtpClient client, java.io.OutputStream outstr)
-
-
Method Detail
-
onClose
protected void onClose() throws java.io.IOException
Called after this stream is closed.- Overrides:
onClose
in classMonitorOutputStream
- Throws:
java.io.IOException
- if an error occurs.
-
-