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
public class GassInputStream extends HTTPInputStream
-
-
Field Summary
-
Fields inherited from class org.globus.io.streams.HTTPInputStream
input, size, socket
-
-
Constructor Summary
Constructors Constructor Description GassInputStream(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Socket
openSocket(String host, int port)
-
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, transferTo
-
-
-
-
Constructor Detail
-
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 Detail
-
openSocket
protected Socket openSocket(String host, int port) throws IOException
- Overrides:
openSocket
in classHTTPInputStream
- Throws:
IOException
-
-