se.datadosen.io
Class FastFile

java.lang.Object
  extended by java.io.File
      extended by se.datadosen.io.FastFile
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.io.File>

public class FastFile
extends java.io.File

Wrap Files into this cached File version to speed up sorting (4 fold for file date comparisons)

Company: JAlbum AB

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
FastFile(java.io.File f)
           
 
Method Summary
 long getCameraDate()
           
 AlbumObjectProperties getProperties()
           
 boolean isDirectory()
           
 long lastModified()
           
 boolean setLastModified(long modificationDate)
           
 java.io.File unWrap()
           
 
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isFile, isHidden, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FastFile

public FastFile(java.io.File f)
Method Detail

isDirectory

public final boolean isDirectory()
Overrides:
isDirectory in class java.io.File

lastModified

public final long lastModified()
Overrides:
lastModified in class java.io.File

setLastModified

public final boolean setLastModified(long modificationDate)
Overrides:
setLastModified in class java.io.File

getCameraDate

public long getCameraDate()

getProperties

public AlbumObjectProperties getProperties()

unWrap

public final java.io.File unWrap()