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
IOException
FTPException
public FTPOutputStream(String host, int port, String user, String pwd, String file, boolean append, boolean passive, int type) throws IOException, FTPException
IOException
FTPException
public void abort()
GlobusOutputStream
abort
in class GlobusOutputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
protected void put(boolean passive, int type, String remoteFile, boolean append) throws IOException, FTPException
IOException
FTPException
public void write(byte[] msg) throws IOException
write
in class OutputStream
IOException
public void write(byte[] msg, int from, int length) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class GlobusOutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
Copyright © 2016. All rights reserved.