org.globus.io.streams
Class GassInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.globus.io.streams.GlobusInputStream
          extended byorg.globus.io.streams.HTTPInputStream
              extended byorg.globus.io.streams.GassInputStream

public class GassInputStream
extends HTTPInputStream


Field Summary
 
Fields inherited from class org.globus.io.streams.HTTPInputStream
input, size, socket
 
Constructor Summary
GassInputStream(GSSCredential cred, Authorization auth, String host, int port, String file)
          Opens Gass input stream in secure mode with specified user credentials.
GassInputStream(String host, int port, String file)
          Opens Gass input stream in secure mode with default user credentials.
 
Method Summary
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, 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(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 server
port - port number of the gass server
file - file to retrieve from the server

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 use
host - host name of the gass server
port - port number of the gass server
file - file to retrieve from the server
Method Detail

openSocket

protected Socket openSocket(String host,
                            int port)
                     throws IOException
Overrides:
openSocket in class HTTPInputStream
Throws:
IOException