Class GassOutputStream

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

    public class GassOutputStream
    extends HTTPOutputStream
    • Constructor Summary

      Constructors 
      Constructor Description
      GassOutputStream​(java.lang.String host, int port, java.lang.String file, long length, boolean append)
      Opens Gass output stream in secure mode with default user credentials.
      GassOutputStream​(org.ietf.jgss.GSSCredential cred, java.lang.String host, int port, java.lang.String file, long length, boolean append)
      Opens Gass output stream in secure mode with specified user credentials.
      GassOutputStream​(org.ietf.jgss.GSSCredential cred, Authorization auth, java.lang.String host, int port, java.lang.String file, long length, boolean append)
      Opens Gass output stream in secure mode with specified user credentials.
    • Method Summary

      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GassOutputStream

        public GassOutputStream​(java.lang.String host,
                                int port,
                                java.lang.String file,
                                long length,
                                boolean append)
                         throws GassException,
                                org.ietf.jgss.GSSException,
                                java.io.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
        org.ietf.jgss.GSSException
        java.io.IOException
      • GassOutputStream

        public GassOutputStream​(org.ietf.jgss.GSSCredential cred,
                                java.lang.String host,
                                int port,
                                java.lang.String file,
                                long length,
                                boolean append)
                         throws GassException,
                                org.ietf.jgss.GSSException,
                                java.io.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
        org.ietf.jgss.GSSException
        java.io.IOException
      • GassOutputStream

        public GassOutputStream​(org.ietf.jgss.GSSCredential cred,
                                Authorization auth,
                                java.lang.String host,
                                int port,
                                java.lang.String file,
                                long length,
                                boolean append)
                         throws GassException,
                                org.ietf.jgss.GSSException,
                                java.io.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
        org.ietf.jgss.GSSException
        java.io.IOException