public abstract class BaseFileObject extends Object implements JavaFileObject
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.
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseFileObject.CannotCreateUriError
Used when URLSyntaxException is thrown unexpectedly during
implementations of (Base)FileObject.toURI().
|
JavaFileObject.Kind
Modifier and Type | Field and Description |
---|---|
protected JavacFileManager |
fileManager
The file manager that created this JavaFileObject.
|
Modifier | Constructor and Description |
---|---|
protected |
BaseFileObject(JavacFileManager fileManager) |
Modifier and Type | Method and Description |
---|---|
protected static URI |
createJarUri(File jarFile,
String entryName) |
abstract boolean |
equals(Object other) |
Modifier |
getAccessLevel() |
protected CharsetDecoder |
getDecoder(boolean ignoreEncodingErrors) |
protected static JavaFileObject.Kind |
getKind(String filename) |
NestingKind |
getNestingKind() |
abstract String |
getShortName()
Return a short name for the object, such as for use in raw diagnostics
|
static String |
getSimpleName(FileObject fo)
Return the last component of a presumed hierarchical URI.
|
abstract int |
hashCode() |
protected abstract String |
inferBinaryName(Iterable<? extends File> path) |
Reader |
openReader(boolean ignoreEncodingErrors) |
protected static String |
removeExtension(String fileName) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getKind, isNameCompatible
delete, getCharContent, getLastModified, getName, openInputStream, openOutputStream, openWriter, toUri
protected final JavacFileManager fileManager
protected BaseFileObject(JavacFileManager fileManager)
public abstract String getShortName()
public NestingKind getNestingKind()
getNestingKind
in interface JavaFileObject
public Modifier getAccessLevel()
getAccessLevel
in interface JavaFileObject
public Reader openReader(boolean ignoreEncodingErrors) throws IOException
openReader
in interface FileObject
IOException
protected CharsetDecoder getDecoder(boolean ignoreEncodingErrors)
protected static JavaFileObject.Kind getKind(String filename)
public static String getSimpleName(FileObject fo)
Copyright © 2017 earcam. All rights reserved.