Package com.enterprisedt.net.ftp
Class FileTransferOutputStream
java.lang.Object
java.io.OutputStream
com.enterprisedt.net.ftp.FileTransferOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
FTPOutputStream
Super class of all output streams supported
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanHas the stream been closed?protected StringName of remote file being transferredprotected longNumber of bytes transferred -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the number of bytes transferredGet the name of the remote file (including one that may have been generated by the server).Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write, write
-
Field Details
-
remoteFile
Name of remote file being transferred -
size
protected long sizeNumber of bytes transferred -
closed
protected boolean closedHas the stream been closed?
-
-
Constructor Details
-
FileTransferOutputStream
public FileTransferOutputStream()
-
-
Method Details
-
getRemoteFile
Get the name of the remote file (including one that may have been generated by the server).- Returns:
- remote filename
-
getBytesTransferred
public long getBytesTransferred()Get the number of bytes transferred- Returns:
- long
-