public class GlobusFileInputStream extends GlobusInputStream
Modifier and Type | Field and Description |
---|---|
private java.io.FileInputStream |
input |
private long |
size |
Constructor and Description |
---|
GlobusFileInputStream(java.lang.String file) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts transfer.
|
int |
available() |
void |
close() |
long |
getSize()
Returns the total size of input data.
|
int |
read() |
int |
read(byte[] msg) |
int |
read(byte[] buf,
int off,
int len) |
public GlobusFileInputStream(java.lang.String file) throws java.io.IOException
java.io.IOException
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