public class FTPOutputStream extends GlobusOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected FTPClient |
ftp |
protected java.io.OutputStream |
output |
protected 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 FTPClient ftp
protected 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,
FTPException
java.io.IOExceptionFTPExceptionpublic 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,
FTPException
java.io.IOExceptionFTPExceptionpublic void abort()
GlobusOutputStreamabort in class GlobusOutputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionprotected void put(boolean passive,
int type,
java.lang.String remoteFile,
boolean append)
throws java.io.IOException,
FTPException
java.io.IOExceptionFTPExceptionpublic 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.IOExceptionCopyright © 2013. All Rights Reserved.