com.partnersoft.v3x.apps.Propagate
Class FileChecksum

java.lang.Object
  extended by com.partnersoft.v3x.apps.Propagate.FileChecksum
All Implemented Interfaces:
java.io.Serializable

public class FileChecksum
extends java.lang.Object
implements java.io.Serializable

A file and a checksum for it. Whoopee. Only useful for the ChecksumDatafile.

See Also:
Serialized Form

Constructor Summary
FileChecksum()
          Create a new FileChecksum.
FileChecksum(java.io.File filet, java.lang.String type)
          Create a new FileChecksum with the file, go ahead and calculate the checksum too.
FileChecksum(java.io.File root, java.lang.String filename, java.lang.String type)
          Create a new FileChecksum with the file, go ahead and calculate the checksum too.
 
Method Summary
 long getChecksum()
          Checksum for the file.
 java.io.File getFile()
           
 java.lang.String getFilename()
           
 java.lang.String getType()
           
 void setChecksum(long newChecksum)
          Checksum for the file.
 void setFilename(java.lang.String newFileName)
           
 void setType(java.lang.String newType)
           
 java.lang.String toString()
           
 void updateChecksum()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileChecksum

public FileChecksum()
Create a new FileChecksum.


FileChecksum

public FileChecksum(java.io.File filet,
                    java.lang.String type)
             throws java.io.IOException
Create a new FileChecksum with the file, go ahead and calculate the checksum too.

Throws:
java.io.IOException

FileChecksum

public FileChecksum(java.io.File root,
                    java.lang.String filename,
                    java.lang.String type)
             throws java.io.IOException
Create a new FileChecksum with the file, go ahead and calculate the checksum too.

Throws:
java.io.IOException
Method Detail

updateChecksum

public void updateChecksum()
                    throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getChecksum

public long getChecksum()
Checksum for the file.


setChecksum

public void setChecksum(long newChecksum)
Checksum for the file.


getFile

public java.io.File getFile()

getFilename

public java.lang.String getFilename()

setFilename

public void setFilename(java.lang.String newFileName)

getType

public java.lang.String getType()

setType

public void setType(java.lang.String newType)