GassOutputStream (Java Globus API)

org.globus.io.streams
Class GassOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--org.globus.io.streams.GlobusOutputStream
              |
              +--org.globus.io.streams.HTTPOutputStream
                    |
                    +--org.globus.io.streams.GassOutputStream

public class GassOutputStream
extends HTTPOutputStream


Field Summary
 
Fields inherited from class org.globus.io.streams.HTTPOutputStream
append, contArr, gassS, in, output, reply, size
 
Constructor Summary
GassOutputStream(GlobusProxy proxy, java.lang.String host, int port, java.lang.String file, int length, boolean append)
          Opens Gass output stream in secure mode with specified user credentials.
GassOutputStream(java.lang.String host, int port, java.lang.String file, int length, boolean append)
          Opens Gass output stream in secure mode with default user credentials.
 
Methods inherited from class org.globus.io.streams.HTTPOutputStream
abort, close, flush, put, write, write, write
 
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,
                        int length,
                        boolean append)
                 throws GassException,
                        GlobusProxyException,
                        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.

GassOutputStream

public GassOutputStream(GlobusProxy proxy,
                        java.lang.String host,
                        int port,
                        java.lang.String file,
                        int length,
                        boolean append)
                 throws GassException,
                        GlobusProxyException,
                        java.io.IOException
Opens Gass output stream in secure mode with specified user credentials.

Parameters:
proxy - 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.