public class VolatileJavaFile extends SimpleJavaFileObject
JavaFileObject.Kind| Modifier and Type | Field and Description |
|---|---|
static String |
URI_SCHEME
The schema name of this kind of resources.
|
kind, uri| Constructor and Description |
|---|
VolatileJavaFile(String path)
Creates a new instance with empty contents.
|
VolatileJavaFile(String path,
String contents)
Creates a new instance with the specified contents.
|
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
Reader |
openReader(boolean ignoreEncodingErrors) |
Writer |
openWriter() |
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, toString, toUripublic static final String URI_SCHEME
public VolatileJavaFile(String path)
path - the relative path from the source path (do not end with .java)IllegalArgumentException - if the parameter is nullpublic VolatileJavaFile(String path, String contents)
path - the relative path from the source path (do not end with .java)contents - the file contentsIllegalArgumentException - if the parameter is nullpublic CharSequence getCharContent(boolean ignoreEncodingErrors)
getCharContent in interface FileObjectgetCharContent in class SimpleJavaFileObjectpublic Reader openReader(boolean ignoreEncodingErrors)
openReader in interface FileObjectopenReader in class SimpleJavaFileObjectpublic Writer openWriter()
openWriter in interface FileObjectopenWriter in class SimpleJavaFileObjectCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.