Class GassInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class GassInputStream
    extends HTTPInputStream
    • 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 java.io.InputStream

        mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • 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,
                               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