SourceJammer 1.3.0 November 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan

org.sourcejammer.project.view
Class FileUploader

java.lang.Object
  |
  +--org.sourcejammer.project.view.FileUploader
All Implemented Interfaces:
Uploader

public class FileUploader
extends java.lang.Object
implements Uploader

This object allows the client to chop up a file into smaller chunks and stream in each chunk in sequence. SOAP client should be able to instantiate and manipulate this object.


Constructor Summary
FileUploader()
          Construct a new FileUploader.
 
Method Summary
 long getFileUploadID()
          Returns the unique file upload ID.
 void uploadBytes(SendBytes by)
          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

FileUploader

public FileUploader()
             throws FileSendException
Construct a new FileUploader. Gets and stores file upload ID for this upload. Created temp file object.
Throws:
FileUploadException - if object has trouble writing to server's file system.
Method Detail

getFileUploadID

public long getFileUploadID()
Returns the unique file upload ID. This needs to be passed to MCP check in or add method.
Specified by:
getFileUploadID in interface Uploader

uploadBytes

public void uploadBytes(SendBytes by)
                 throws FileSendException
Streams bytes into the FileUploader.
Specified by:
uploadBytes in interface Uploader
Parameters:
by - -- SendBytes object wrapped around bytes..

SourceJammer 1.3.0 November 20, 2002
Copyright (c) 2001, 2002 Robert MacGrogan