com.enderak.procol.common.util
Class DownloadFile

java.lang.Object
  |
  +--com.enderak.procol.common.util.DownloadFile

public class DownloadFile
extends java.lang.Object

Container class for a file that is being transfered. Just serves to hold the file and associated information until the file data is received. Name is rather misleading, as it pulls double-duty as both a file being downloaded and a file being uploaded, depending on which end of the transfer it's at

Author:
Justin Dieters

Field Summary
 java.lang.String changeLog
           
 java.net.URI destURI
           
 ProColFile file
           
 java.lang.String version
           
 
Constructor Summary
DownloadFile(ProColFile fileIn, java.lang.String versionIn, java.lang.String changeLogIn)
          Creates a DownloadFile with a file, new version, and changelog
DownloadFile(ProColFile fileIn, java.net.URI destURIIn)
          Creates a new DownloadFile with a ProColFile and destination URI
DownloadFile(java.net.URI destURIIn)
          Creates a new, DownloadFile with a destination URI
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

file

public ProColFile file

version

public java.lang.String version

changeLog

public java.lang.String changeLog

destURI

public java.net.URI destURI
Constructor Detail

DownloadFile

public DownloadFile(java.net.URI destURIIn)
Creates a new, DownloadFile with a destination URI

Parameters:
destURIIn - URI of destination

DownloadFile

public DownloadFile(ProColFile fileIn,
                    java.net.URI destURIIn)
Creates a new DownloadFile with a ProColFile and destination URI

Parameters:
fileIn - The File
destURIIn - URI of destination

DownloadFile

public DownloadFile(ProColFile fileIn,
                    java.lang.String versionIn,
                    java.lang.String changeLogIn)
Creates a DownloadFile with a file, new version, and changelog

Parameters:
fileIn - The File
versionIn - The File Version
changeLogIn - The Changelog
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
The DownloadFile in String form