Package org.globus.io.streams
Class GassInputStream
java.lang.Object
java.io.InputStream
org.globus.io.streams.GlobusInputStream
org.globus.io.streams.HTTPInputStream
org.globus.io.streams.GassInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class org.globus.io.streams.HTTPInputStream
input, size, socket
-
Constructor Summary
ConstructorsConstructorDescriptionGassInputStream
(String host, int port, String file) Opens Gass input stream in secure mode with default user credentials.GassInputStream
(GSSCredential cred, Authorization auth, String host, int port, String file) Opens Gass input stream in secure mode with specified user credentials. -
Method Summary
Methods inherited from class org.globus.io.streams.HTTPInputStream
abort, available, close, get, getSize, read, read, read
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
GassInputStream
public GassInputStream(String host, int port, String file) throws GassException, GSSException, IOException Opens Gass input stream in secure mode with default user credentials.- Parameters:
host
- host name of the gass serverport
- port number of the gass serverfile
- file to retrieve from the server- Throws:
GassException
GSSException
IOException
-
GassInputStream
public GassInputStream(GSSCredential cred, Authorization auth, String host, int port, String file) throws GassException, GSSException, IOException Opens Gass input stream in secure mode with specified user credentials.- Parameters:
cred
- user credentials to usehost
- host name of the gass serverport
- port number of the gass serverfile
- file to retrieve from the server- Throws:
GassException
GSSException
IOException
-
-
Method Details
-
openSocket
- Overrides:
openSocket
in classHTTPInputStream
- Throws:
IOException
-