public class FTPInputStream extends GlobusInputStream
Modifier and Type | Field and Description |
---|---|
protected FTPClient |
ftp |
protected java.io.InputStream |
input |
protected TransferState |
state |
Modifier | Constructor and Description |
---|---|
protected |
FTPInputStream() |
|
FTPInputStream(java.lang.String host,
int port,
java.lang.String user,
java.lang.String pwd,
java.lang.String file) |
|
FTPInputStream(java.lang.String host,
int port,
java.lang.String user,
java.lang.String pwd,
java.lang.String file,
boolean passive,
int type) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts transfer.
|
int |
available() |
void |
close() |
protected void |
get(boolean passive,
int type,
java.lang.String remoteFile) |
long |
getSize()
Returns the total size of input data.
|
int |
read() |
int |
read(byte[] msg) |
int |
read(byte[] buf,
int off,
int len) |
protected java.io.InputStream input
protected FTPClient ftp
protected TransferState state
protected FTPInputStream()
public FTPInputStream(java.lang.String host, int port, java.lang.String user, java.lang.String pwd, java.lang.String file) throws java.io.IOException, FTPException
java.io.IOException
FTPException
public FTPInputStream(java.lang.String host, int port, java.lang.String user, java.lang.String pwd, java.lang.String file, boolean passive, int type) throws java.io.IOException, FTPException
java.io.IOException
FTPException
protected void get(boolean passive, int type, java.lang.String remoteFile) throws java.io.IOException, FTPException
java.io.IOException
FTPException
public long getSize()
GlobusInputStream
getSize
in class GlobusInputStream
public void abort()
GlobusInputStream
abort
in class GlobusInputStream
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public int read(byte[] msg) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] buf, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class GlobusInputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException