APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.tools.javac.file

public Class CacheFSInfo

extends FSInfo
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path, java.nio.file.attribute.BasicFileAttributes, java.util.List, .Optional, java.util.concurrent.ConcurrentHashMap, com.sun.tools.javac.util.Context, .Context.Factory

Caching implementation of FSInfo.

This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

Field Summary

Modifier and TypeField and Description
protected final ConcurrentHashMap<Path, Optional<BasicFileAttributes>>
protected final ConcurrentHashMap<Path, Path>
protected final ConcurrentHashMap<Path, List<Path>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
protected Optional<BasicFileAttributes>
public Path
public List<Path>
public boolean
public boolean
protected Optional<BasicFileAttributes>
public static void
preRegister(Context context)

Register a Context.Factory to create a CacheFSInfo.

Inherited from com.sun.tools.javac.file.FSInfo:
getJarFSProviderinstancereadOnlyJarFSEnvtryResolveFile

Field Detail

attributeCacheback to summary
protected final ConcurrentHashMap<Path, Optional<BasicFileAttributes>> attributeCache
canonicalPathCacheback to summary
protected final ConcurrentHashMap<Path, Path> canonicalPathCache
jarClassPathCacheback to summary
protected final ConcurrentHashMap<Path, List<Path>> jarClassPathCache

Constructor Detail

CacheFSInfoback to summary
public CacheFSInfo()

Method Detail

clearCacheback to summary
public void clearCache()
existsback to summary
public boolean exists(Path file)

Overrides com.sun.tools.javac.file.FSInfo.exists.

Annotations
@Override
getAttributesback to summary
protected Optional<BasicFileAttributes> getAttributes(Path file)
getCanonicalFileback to summary
public Path getCanonicalFile(Path file)

Overrides com.sun.tools.javac.file.FSInfo.getCanonicalFile.

Annotations
@Override
getJarClassPathback to summary
public List<Path> getJarClassPath(Path file) throws IOException

Overrides com.sun.tools.javac.file.FSInfo.getJarClassPath.

Annotations
@Override
isDirectoryback to summary
public boolean isDirectory(Path file)

Overrides com.sun.tools.javac.file.FSInfo.isDirectory.

Annotations
@Override
isFileback to summary
public boolean isFile(Path file)

Overrides com.sun.tools.javac.file.FSInfo.isFile.

Annotations
@Override
maybeReadAttributesback to summary
protected Optional<BasicFileAttributes> maybeReadAttributes(Path file)
preRegisterback to summary
public static void preRegister(Context context)

Register a Context.Factory to create a CacheFSInfo.