public abstract class BaseFileManager extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseFileManager.ContentCacheEntry |
Modifier and Type | Field and Description |
---|---|
protected Charset |
charset
User provided charset (through javax.tools).
|
protected String |
classLoaderClass |
protected Map<JavaFileObject,BaseFileManager.ContentCacheEntry> |
contentCache |
protected Locations |
locations |
Log |
log
The log to be used for error reporting.
|
protected Options |
options |
Modifier | Constructor and Description |
---|---|
protected |
BaseFileManager(Charset charset) |
public Log log
protected Charset charset
protected Options options
protected String classLoaderClass
protected Locations locations
protected final Map<JavaFileObject,BaseFileManager.ContentCacheEntry> contentCache
protected BaseFileManager(Charset charset)
public void setContext(Context context)
protected Locations createLocations()
protected Source getSource()
protected ClassLoader getClassLoader(URL[] urls)
public int isSupportedOption(String option)
public abstract boolean isDefaultBootClassPath()
public String getEncodingName()
public CharBuffer decode(ByteBuffer inbuf, boolean ignoreEncodingErrors)
public CharsetDecoder getDecoder(String encodingName, boolean ignoreEncodingErrors)
public ByteBuffer makeByteBuffer(InputStream in) throws IOException
IOException
public void recycleByteBuffer(ByteBuffer bb)
public CharBuffer getCachedContent(JavaFileObject file)
public void cache(JavaFileObject file, CharBuffer cb)
public void flushCache(JavaFileObject file)
public static JavaFileObject.Kind getKind(String name)
protected static <T> T nullCheck(T o)
protected static <T> Collection<T> nullCheck(Collection<T> it)
Copyright © 2015. All rights reserved.