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:
java.io.Closeable
,java.lang.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(java.lang.String host, int port, java.lang.String file)
Opens Gass input stream in secure mode with default user credentials.GassInputStream(org.ietf.jgss.GSSCredential cred, Authorization auth, java.lang.String host, int port, java.lang.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 java.net.Socket
openSocket(java.lang.String host, int port)
-
Methods inherited from class org.globus.io.streams.HTTPInputStream
abort, available, close, get, getSize, read, read, read
-
-
-
-
Constructor Detail
-
GassInputStream
public GassInputStream(java.lang.String host, int port, java.lang.String file) throws GassException, org.ietf.jgss.GSSException, java.io.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
org.ietf.jgss.GSSException
java.io.IOException
-
GassInputStream
public GassInputStream(org.ietf.jgss.GSSCredential cred, Authorization auth, java.lang.String host, int port, java.lang.String file) throws GassException, org.ietf.jgss.GSSException, java.io.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
org.ietf.jgss.GSSException
java.io.IOException
-
-
Method Detail
-
openSocket
protected java.net.Socket openSocket(java.lang.String host, int port) throws java.io.IOException
- Overrides:
openSocket
in classHTTPInputStream
- Throws:
java.io.IOException
-
-