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

org.sourcejammer.project.view
Class FileDownloader

java.lang.Object
  |
  +--org.sourcejammer.project.view.FileDownloader

public class FileDownloader
extends java.lang.Object

Object used to stream files to client is chunks of specified size.


Inner Class Summary
static class FileDownloader.DownloadTypes
           
 
Constructor Summary
FileDownloader()
          Construct a new FileDownloader.
 
Method Summary
 SendBytes downloadBytes(int iMaxBytes)
          Download the specified number of bytes packaged in a SendBytes object.
 void setFileIdentifier(DownloadFileIdentifier id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDownloader

public FileDownloader()
Construct a new FileDownloader.
Method Detail

setFileIdentifier

public void setFileIdentifier(DownloadFileIdentifier id)
                       throws FileSendException

downloadBytes

public SendBytes downloadBytes(int iMaxBytes)
                        throws FileSendException
Download the specified number of bytes packaged in a SendBytes object.
Parameters:
maxBytes - -- maximum number of bytes to send.
Returns:
a SendBytes object containing the byte[] and an eof indicator.

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