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.IOExceptionFTPExceptionpublic 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.IOExceptionFTPExceptionprotected void get(boolean passive,
int type,
java.lang.String remoteFile)
throws java.io.IOException,
FTPException
java.io.IOExceptionFTPExceptionpublic long getSize()
GlobusInputStreamgetSize in class GlobusInputStreampublic void abort()
GlobusInputStreamabort in class GlobusInputStreampublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] msg)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class GlobusInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionCopyright © 2013. All Rights Reserved.