public class JavaSourceFromFile extends SimpleJavaFileObject
JavaFileObject.Kindkind, uri| Constructor and Description |
|---|
JavaSourceFromFile(File file,
JavaFileObject.Kind kind)
Construct a JavaFileObject of the given kind and with the given File.
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
getCharContent(boolean ignoreEncodingErrors)
Returns class source represented as string.
|
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUripublic JavaSourceFromFile(File file, JavaFileObject.Kind kind)
file - the file with source of this file objectkind - the kind of this file objectpublic CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException
getCharContent in interface FileObjectgetCharContent in class SimpleJavaFileObjectignoreEncodingErrors - not usedIOException - if something goes wrongCopyright © 2014–2015. All rights reserved.