SourceJammer 1.2.0.1 May 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan

org.sourcejammer.client
Class UploaderProxy

java.lang.Object
  |
  +--org.sourcejammer.client.UploaderProxy

public class UploaderProxy
extends java.lang.Object


Constructor Summary
UploaderProxy()
           
UploaderProxy(java.lang.String url)
           
UploaderProxy(java.net.URL url)
           
 
Method Summary
 long getFileUploadID()
           
 java.net.URL getURL()
           
 void setURL(java.lang.String url)
           
 void setURL(java.net.URL url)
           
 void uploadBytes(byte[] by)
          Streams bytes into the FileUploader.
 void uploadBytes(byte[] by, boolean eof)
          Streams bytes into the FileUploader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploaderProxy

public UploaderProxy()

UploaderProxy

public UploaderProxy(java.lang.String url)
              throws java.net.MalformedURLException

UploaderProxy

public UploaderProxy(java.net.URL url)
Method Detail

setURL

public void setURL(java.lang.String url)
            throws java.net.MalformedURLException

setURL

public void setURL(java.net.URL url)

getURL

public java.net.URL getURL()

getFileUploadID

public long getFileUploadID()
                     throws SourceJammerConnectionException

uploadBytes

public void uploadBytes(byte[] by)
                 throws SourceJammerConnectionException
Streams bytes into the FileUploader.
Parameters:
by - -- a byte array being streamed in. This is a chunk of a file.

uploadBytes

public void uploadBytes(byte[] by,
                        boolean eof)
                 throws SourceJammerConnectionException
Streams bytes into the FileUploader.
Parameters:
by - -- a byte array being streamed in. This is a chunk of a file.
eol - -- if true, tells FileUploader that this is the last chunk of bytes in the file. FileUploader closes the output stream.

SourceJammer 1.2.0.1 May 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan