Class GlobusFileInputStream
java.lang.Object
java.io.InputStream
org.globus.io.streams.GlobusInputStream
org.globus.io.streams.GlobusFileInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
input
-
size
private long size
-
-
Constructor Details
-
GlobusFileInputStream
- Throws:
IOException
-
-
Method Details
-
getSize
public long getSize()Description copied from class:GlobusInputStreamReturns the total size of input data.- Overrides:
getSizein classGlobusInputStream- Returns:
- -1 if size is unknown.
-
abort
public void abort()Description copied from class:GlobusInputStreamAborts transfer. Usually makes sure to release all resources (sockets, file descriptors)
Does nothing by default.- Overrides:
abortin classGlobusInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classGlobusInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-