public class FTPOutputStream extends GlobusOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected FTPClient |
ftp |
protected OutputStream |
output |
protected TransferState |
state |
| Modifier | Constructor and Description |
|---|---|
protected |
FTPOutputStream() |
|
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts transfer.
|
void |
close() |
void |
flush() |
protected void |
put(boolean passive,
int type,
String remoteFile,
boolean append) |
void |
write(byte[] msg) |
void |
write(byte[] msg,
int from,
int length) |
void |
write(int b) |
protected OutputStream output
protected FTPClient ftp
protected TransferState state
protected FTPOutputStream()
public FTPOutputStream(String host, int port, String user, String pwd, String file, boolean append) throws IOException, FTPException
IOExceptionFTPExceptionpublic FTPOutputStream(String host, int port, String user, String pwd, String file, boolean append, boolean passive, int type) throws IOException, FTPException
IOExceptionFTPExceptionpublic void abort()
GlobusOutputStreamabort in class GlobusOutputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionprotected void put(boolean passive,
int type,
String remoteFile,
boolean append)
throws IOException,
FTPException
IOExceptionFTPExceptionpublic void write(byte[] msg)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] msg,
int from,
int length)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class GlobusOutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionCopyright © 2016. All rights reserved.