com.ptc.windchill.structconf.util
Class FileUtil.FileInfo

java.lang.Object
  extended bycom.ptc.windchill.structconf.util.FileUtil.FileInfo
Enclosing class:
FileUtil

public static final class FileUtil.FileInfo
extends Object

Snapshot of a files information useful for comparing. Primarily used by #backup(java.io.File).


Field Summary
private  long crc_
           
private  File file_
           
private  long lastModified_
           
 
Constructor Summary
FileUtil.FileInfo(File file, long crc)
          Create a new instance.
FileUtil.FileInfo(File file, long crc, long last_modified)
          Create a new instance.
 
Method Summary
 long getCrc()
          The CRC of the file at the time that the file info class was created.
 File getFile()
          Fhe file's Java file object.
 long getLastModified()
          The last modified time (milliseconds since the epoch) of the file.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

file_

private File file_

crc_

private long crc_

lastModified_

private long lastModified_
Constructor Detail

FileUtil.FileInfo

public FileUtil.FileInfo(File file,
                         long crc)
Create a new instance.


FileUtil.FileInfo

public FileUtil.FileInfo(File file,
                         long crc,
                         long last_modified)
Create a new instance.

Method Detail

getFile

public File getFile()
Fhe file's Java file object.


getCrc

public long getCrc()
The CRC of the file at the time that the file info class was created.


getLastModified

public long getLastModified()
The last modified time (milliseconds since the epoch) of the file.


toString

public String toString()