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, toUri
public 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 null
public 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 null
public CharSequence getCharContent(boolean ignoreEncodingErrors)
getCharContent
in interface FileObject
getCharContent
in class SimpleJavaFileObject
public Reader openReader(boolean ignoreEncodingErrors)
openReader
in interface FileObject
openReader
in class SimpleJavaFileObject
public Writer openWriter()
openWriter
in interface FileObject
openWriter
in class SimpleJavaFileObject
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.