Java Globus API: Class FTPInputStream
org.globus.io.streams
Class FTPInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--org.globus.io.streams.GlobusInputStream
|
+--org.globus.io.streams.FTPInputStream
- Direct Known Subclasses:
- GridFTPInputStream
- public class FTPInputStream
- extends GlobusInputStream
|
Constructor Summary |
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)
|
|
Method Summary |
void |
abort()
Aborts transfer. |
int |
available()
|
void |
close()
|
protected void |
get(boolean passive,
int type,
String remoteFile)
|
int |
getSize()
Returns the total size of input data. |
int |
read()
|
int |
read(byte[] msg)
|
int |
read(byte[] buf,
int off,
int len)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
input
protected InputStream input
ftp
protected FTPClient ftp
state
protected TransferState state
FTPInputStream
protected FTPInputStream()
FTPInputStream
public FTPInputStream(String host,
int port,
String user,
String pwd,
String file)
throws IOException,
FTPException
FTPInputStream
public FTPInputStream(String host,
int port,
String user,
String pwd,
String file,
boolean passive,
int type)
throws IOException,
FTPException
get
protected void get(boolean passive,
int type,
String remoteFile)
throws IOException,
FTPException
getSize
public int getSize()
- Description copied from class:
GlobusInputStream
- Returns the total size of input data.
- Overrides:
getSize in class GlobusInputStream
- Following copied from class:
org.globus.io.streams.GlobusInputStream
- Returns:
- -1 if size is unknown.
abort
public void abort()
- Description copied from class:
GlobusInputStream
- Aborts transfer. Usually makes sure to
release all resources (sockets, file descriptors)
Does nothing by default.
- Overrides:
abort in class GlobusInputStream
close
public void close()
throws IOException
- Overrides:
close in class InputStream
read
public int read(byte[] msg)
throws IOException
- Overrides:
read in class InputStream
read
public int read(byte[] buf,
int off,
int len)
throws IOException
- Overrides:
read in class InputStream
read
public int read()
throws IOException
- Overrides:
read in class GlobusInputStream
available
public int available()
throws IOException
- Overrides:
available in class InputStream