com.sun.tools.javac.file
Class CacheFSInfo
java.lang.Object
com.sun.tools.javac.file.FSInfo
com.sun.tools.javac.file.CacheFSInfo
public class CacheFSInfo
- extends FSInfo
Caching implementation of FSInfo
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
singleton
static CacheFSInfo singleton
cache
private java.util.Map<java.io.File,CacheFSInfo.Entry> cache
CacheFSInfo
public CacheFSInfo()
preRegister
public static void preRegister(Context context)
- Register a Context.Factory to create a singleton CacheFSInfo.
clearCache
public void clearCache()
getCanonicalFile
public java.io.File getCanonicalFile(java.io.File file)
- Overrides:
getCanonicalFile in class FSInfo
exists
public boolean exists(java.io.File file)
- Overrides:
exists in class FSInfo
isDirectory
public boolean isDirectory(java.io.File file)
- Overrides:
isDirectory in class FSInfo
isFile
public boolean isFile(java.io.File file)
- Overrides:
isFile in class FSInfo
getJarClassPath
public java.util.List<java.io.File> getJarClassPath(java.io.File file)
throws java.io.IOException
- Overrides:
getJarClassPath in class FSInfo
- Throws:
java.io.IOException
getEntry
private CacheFSInfo.Entry getEntry(java.io.File file)