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.IOException
FTPException
public 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.IOException
FTPException
public void abort()
GlobusOutputStream
abort
in class GlobusOutputStream
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
protected void put(boolean passive, int type, java.lang.String remoteFile, boolean append) throws java.io.IOException, FTPException
java.io.IOException
FTPException
public void write(byte[] msg) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] msg, int from, int length) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class GlobusOutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
Copyright © 2013. All Rights Reserved.