public class FTPInputStream extends GlobusInputStream
| Modifier and Type | Field and Description |
|---|---|
protected FTPClient |
ftp |
protected InputStream |
input |
protected TransferState |
state |
| Modifier | Constructor and Description |
|---|---|
protected |
FTPInputStream() |
|
FTPInputStream(String host,
int port,
String user,
String pwd,
String file) |
|
FTPInputStream(String host,
int port,
String user,
String pwd,
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,
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) |
mark, markSupported, reset, skipprotected InputStream input
protected FTPClient ftp
protected TransferState state
protected FTPInputStream()
public FTPInputStream(String host, int port, String user, String pwd, String file) throws IOException, FTPException
IOExceptionFTPExceptionpublic FTPInputStream(String host, int port, String user, String pwd, String file, boolean passive, int type) throws IOException, FTPException
IOExceptionFTPExceptionprotected void get(boolean passive,
int type,
String remoteFile)
throws IOException,
FTPException
IOExceptionFTPExceptionpublic long getSize()
GlobusInputStreamgetSize in class GlobusInputStreampublic void abort()
GlobusInputStreamabort in class GlobusInputStreampublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int read(byte[] msg)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class GlobusInputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionCopyright © 2016. All rights reserved.