Class GassOutputStream

    • Constructor Detail

      • GassOutputStream

        public GassOutputStream​(String host,
                                int port,
                                String file,
                                long length,
                                boolean append)
                         throws GassException,
                                GSSException,
                                IOException
        Opens Gass output stream in secure mode with default user credentials.
        Parameters:
        host - host name of the gass server.
        port - port number of the gass server.
        file - name of the file on the remote side.
        length - total size of the data to be transfered. Use -1 if unknown. The data then will be transfered in chunks.
        append - if true, append data to existing file. Otherwise, the file will be overwritten.
        Throws:
        GassException
        GSSException
        IOException
      • GassOutputStream

        public GassOutputStream​(GSSCredential cred,
                                String host,
                                int port,
                                String file,
                                long length,
                                boolean append)
                         throws GassException,
                                GSSException,
                                IOException
        Opens Gass output stream in secure mode with specified user credentials.
        Parameters:
        cred - user credentials to use. If null, default user credentials will be used.
        host - host name of the gass server.
        port - port number of the gass server.
        file - name of the file on the remote side.
        length - total size of the data to be transfered. Use -1 if unknown. The data then will be transfered in chunks.
        append - if true, append data to existing file. Otherwise, the file will be overwritten.
        Throws:
        GassException
        GSSException
        IOException
      • GassOutputStream

        public GassOutputStream​(GSSCredential cred,
                                Authorization auth,
                                String host,
                                int port,
                                String file,
                                long length,
                                boolean append)
                         throws GassException,
                                GSSException,
                                IOException
        Opens Gass output stream in secure mode with specified user credentials.
        Parameters:
        cred - user credentials to use. If null, default user credentials will be used.
        host - host name of the gass server.
        port - port number of the gass server.
        file - name of the file on the remote side.
        length - total size of the data to be transfered. Use -1 if unknown. The data then will be transfered in chunks.
        append - if true, append data to existing file. Otherwise, the file will be overwritten.
        Throws:
        GassException
        GSSException
        IOException