edu.rice.cs.util
Class NullFile

java.lang.Object
  extended by java.io.File
      extended by edu.rice.cs.util.NullFile
All Implemented Interfaces:
Serializable, Comparable<File>

public class NullFile
extends File
implements Serializable

A null file. This class is NOT a singleton because we need multiple, distinct null files for untitled documents. The equals method is overridden so that distinct NullFile objects (which all have the same path) are unequal.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
NullFile()
           
 
Method Summary
 boolean equals(Object o)
          All distinct objects of type NullFile are unequal.
 String getLexiName()
           
 String getName()
           
 String toString()
           
 
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullFile

public NullFile()
Method Detail

toString

public String toString()
Overrides:
toString in class File

getName

public String getName()
Overrides:
getName in class File

getLexiName

public String getLexiName()

equals

public boolean equals(Object o)
All distinct objects of type NullFile are unequal.

Overrides:
equals in class File