Class FTPOutputStream
java.lang.Object
java.io.OutputStream
org.globus.io.streams.GlobusOutputStream
org.globus.io.streams.FTPOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
- Direct Known Subclasses:
GridFTPOutputStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FTPClientprotected OutputStreamprotected TransferState -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFTPOutputStream(String host, int port, String user, String pwd, String file, boolean append) FTPOutputStream(String host, int port, String user, String pwd, String file, boolean append, boolean passive, int type) -
Method Summary
Methods inherited from class OutputStream
nullOutputStream
-
Field Details
-
output
-
ftp
-
state
-
-
Constructor Details
-
FTPOutputStream
protected FTPOutputStream() -
FTPOutputStream
public FTPOutputStream(String host, int port, String user, String pwd, String file, boolean append) throws IOException, FTPException - Throws:
IOExceptionFTPException
-
FTPOutputStream
public FTPOutputStream(String host, int port, String user, String pwd, String file, boolean append, boolean passive, int type) throws IOException, FTPException - Throws:
IOExceptionFTPException
-
-
Method Details
-
abort
public void abort()Description copied from class:GlobusOutputStreamAborts transfer. Usually makes sure to release all resources (sockets, file descriptors)
Does nothing by default.- Overrides:
abortin classGlobusOutputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
put
protected void put(boolean passive, int type, String remoteFile, boolean append) throws IOException, FTPException - Throws:
IOExceptionFTPException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classGlobusOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-