se.datadosen.io
Class ChainedDirectory

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

public class ChainedDirectory
extends java.io.File
implements java.io.Serializable

Abstraction for a directory that is able to merge files from a background directory

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
ChainedDirectory(java.io.File dir)
           
ChainedDirectory(java.io.File dir, ChainedDirectory backgroundDir)
           
 
Method Summary
 ChainedDirectory getBackgroundDirectory()
           
 java.io.File getDirectory()
           
 java.io.File getFile(java.lang.String name)
           
 boolean isSortFileList()
           
 java.io.File[] listFiles()
           
 java.io.File[] listFiles(java.io.FileFilter filter)
           
 void setSortFileList(boolean sortFileList)
           
 
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, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, 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

ChainedDirectory

public ChainedDirectory(java.io.File dir)

ChainedDirectory

public ChainedDirectory(java.io.File dir,
                        ChainedDirectory backgroundDir)
Method Detail

isSortFileList

public boolean isSortFileList()

setSortFileList

public void setSortFileList(boolean sortFileList)

getDirectory

public java.io.File getDirectory()

getBackgroundDirectory

public ChainedDirectory getBackgroundDirectory()

getFile

public java.io.File getFile(java.lang.String name)

listFiles

public java.io.File[] listFiles()
Overrides:
listFiles in class java.io.File

listFiles

public java.io.File[] listFiles(java.io.FileFilter filter)
Overrides:
listFiles in class java.io.File