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, skip
protected 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
IOException
FTPException
public FTPInputStream(String host, int port, String user, String pwd, String file, boolean passive, int type) throws IOException, FTPException
IOException
FTPException
protected void get(boolean passive, int type, String remoteFile) throws IOException, FTPException
IOException
FTPException
public long getSize()
GlobusInputStream
getSize
in class GlobusInputStream
public void abort()
GlobusInputStream
abort
in class GlobusInputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public int read(byte[] msg) throws IOException
read
in class InputStream
IOException
public int read(byte[] buf, int off, int len) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class GlobusInputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
Copyright © 2016. All rights reserved.