org.sourcejammer.client
Class UploaderProxy

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

public class UploaderProxy
extends java.lang.Object

Title: $FileName: UploaderProxy.java$

Version:
$VerNum: 4$
Author:
$AuthorName: Rob MacGrogan$

$Description: $
$KeyWordsOff: $

Nested Class Summary
private static class UploaderProxy.Methods
           
 
Field Summary
private  org.apache.soap.rpc.Call call
           
private static byte[] EMPTY_BYTES
           
private static org.apache.soap.encoding.SOAPMappingRegistry mapping
           
private static java.lang.String TARGET_URI
           
private  java.net.URL url
           
 
Constructor Summary
UploaderProxy()
           
UploaderProxy(java.lang.String url)
           
UploaderProxy(java.net.URL url)
           
 
Method Summary
 long getFileUploadID()
           
 java.net.URL getURL()
           
private  void initCall()
           
 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.
 long uploadFile(java.io.File fl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapping

private static org.apache.soap.encoding.SOAPMappingRegistry mapping

EMPTY_BYTES

private static byte[] EMPTY_BYTES

TARGET_URI

private static final java.lang.String TARGET_URI
See Also:
Constant Field Values

call

private org.apache.soap.rpc.Call call

url

private java.net.URL url
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

initCall

private void initCall()

setURL

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

setURL

public void setURL(java.net.URL url)

getURL

public java.net.URL getURL()

getFileUploadID

public long getFileUploadID()
                     throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

uploadFile

public long uploadFile(java.io.File fl)
                throws org.sourcejammer.util.SourceJammerConnectionException
org.sourcejammer.util.SourceJammerConnectionException

uploadBytes

public void uploadBytes(byte[] by)
                 throws org.sourcejammer.util.SourceJammerConnectionException
Streams bytes into the FileUploader.

Parameters:
by - -- a byte array being streamed in. This is a chunk of a file.
org.sourcejammer.util.SourceJammerConnectionException

uploadBytes

public void uploadBytes(byte[] by,
                        boolean eof)
                 throws org.sourcejammer.util.SourceJammerConnectionException
Streams bytes into the FileUploader.

Parameters:
by - -- a byte array being streamed in. This is a chunk of a file.
org.sourcejammer.util.SourceJammerConnectionException


Copyright © 2003 Soucejammer project.