Package org.globus.io.streams
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 FTPClient
protected OutputStream
protected TransferState
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
FTPOutputStream
(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 java.io.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:
IOException
FTPException
-
FTPOutputStream
public FTPOutputStream(String host, int port, String user, String pwd, String file, boolean append, boolean passive, int type) throws IOException, FTPException - Throws:
IOException
FTPException
-
-
Method Details
-
abort
public void abort()Description copied from class:GlobusOutputStream
Aborts transfer. Usually makes sure to release all resources (sockets, file descriptors)
Does nothing by default.- Overrides:
abort
in classGlobusOutputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
put
protected void put(boolean passive, int type, String remoteFile, boolean append) throws IOException, FTPException - Throws:
IOException
FTPException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classGlobusOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-