org.globus.io.streams
public class FTPOutputStream extends GlobusOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected org.globus.ftp.FTPClient |
ftp |
protected java.io.OutputStream |
output |
protected org.globus.ftp.vanilla.TransferState |
state |
| Modifier | Constructor and Description |
|---|---|
protected |
FTPOutputStream() |
|
FTPOutputStream(java.lang.String host,
int port,
java.lang.String user,
java.lang.String pwd,
java.lang.String file,
boolean append) |
|
FTPOutputStream(java.lang.String host,
int port,
java.lang.String user,
java.lang.String pwd,
java.lang.String file,
boolean append,
boolean passive,
int type) |
protected java.io.OutputStream output
protected org.globus.ftp.FTPClient ftp
protected org.globus.ftp.vanilla.TransferState state
protected FTPOutputStream()
public FTPOutputStream(java.lang.String host,
int port,
java.lang.String user,
java.lang.String pwd,
java.lang.String file,
boolean append)
throws java.io.IOException,
org.globus.ftp.exception.FTPException
java.io.IOExceptionorg.globus.ftp.exception.FTPExceptionpublic FTPOutputStream(java.lang.String host,
int port,
java.lang.String user,
java.lang.String pwd,
java.lang.String file,
boolean append,
boolean passive,
int type)
throws java.io.IOException,
org.globus.ftp.exception.FTPException
java.io.IOExceptionorg.globus.ftp.exception.FTPExceptionpublic void abort()
GlobusOutputStreamabort in class GlobusOutputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionprotected void put(boolean passive,
int type,
java.lang.String remoteFile,
boolean append)
throws java.io.IOException,
org.globus.ftp.exception.FTPException
java.io.IOExceptionorg.globus.ftp.exception.FTPExceptionpublic void write(byte[] msg)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] msg,
int from,
int length)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class GlobusOutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException