com.sun.tools.javac.file
Class CacheFSInfo

java.lang.Object
  extended by com.sun.tools.javac.file.FSInfo
      extended by com.sun.tools.javac.file.CacheFSInfo

public class CacheFSInfo
extends FSInfo

Caching implementation of FSInfo


Nested Class Summary
private static class CacheFSInfo.Entry
           
 
Field Summary
private  java.util.Map<java.io.File,CacheFSInfo.Entry> cache
           
(package private) static CacheFSInfo singleton
           
 
Constructor Summary
CacheFSInfo()
           
 
Method Summary
 void clearCache()
           
 boolean exists(java.io.File file)
           
 java.io.File getCanonicalFile(java.io.File file)
           
private  CacheFSInfo.Entry getEntry(java.io.File file)
           
 java.util.List<java.io.File> getJarClassPath(java.io.File file)
           
 boolean isDirectory(java.io.File file)
           
 boolean isFile(java.io.File file)
           
static void preRegister(Context context)
          Register a Context.Factory to create a singleton CacheFSInfo.
 
Methods inherited from class com.sun.tools.javac.file.FSInfo
instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

static CacheFSInfo singleton

cache

private java.util.Map<java.io.File,CacheFSInfo.Entry> cache
Constructor Detail

CacheFSInfo

public CacheFSInfo()
Method Detail

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)