org.globus.io.streams
Class GassInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.globus.io.streams.GlobusInputStream
          extended by org.globus.io.streams.HTTPInputStream
              extended by org.globus.io.streams.GassInputStream
All Implemented Interfaces:
java.io.Closeable

public class GassInputStream
extends HTTPInputStream


Field Summary
 
Fields inherited from class org.globus.io.streams.HTTPInputStream
input, size, socket
 
Constructor Summary
GassInputStream(org.ietf.jgss.GSSCredential cred, org.globus.gsi.gssapi.auth.Authorization auth, java.lang.String host, int port, java.lang.String file)
          Opens Gass input stream in secure mode with specified user credentials.
GassInputStream(java.lang.String host, int port, java.lang.String file)
          Opens Gass input stream in secure mode with default user credentials.
 
Method Summary
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
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 server
port - port number of the gass server
file - file to retrieve from the server
Throws:
GassException
org.ietf.jgss.GSSException
java.io.IOException

GassInputStream

public GassInputStream(org.ietf.jgss.GSSCredential cred,
                       org.globus.gsi.gssapi.auth.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 use
host - host name of the gass server
port - port number of the gass server
file - 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 class HTTPInputStream
Throws:
java.io.IOException