public class CustomJavaFileObject extends Object implements JavaFileObject
JavaFileObject.Kind
Modifier | Constructor and Description |
---|---|
protected |
CustomJavaFileObject(URI uri,
JavaFileObject.Kind kind,
String binaryName) |
Modifier and Type | Method and Description |
---|---|
String |
binaryName() |
boolean |
delete() |
Modifier |
getAccessLevel() |
CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
JavaFileObject.Kind |
getKind() |
long |
getLastModified() |
String |
getName() |
NestingKind |
getNestingKind() |
boolean |
isNameCompatible(String simpleName,
JavaFileObject.Kind kind) |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
Reader |
openReader(boolean ignoreEncodingErrors) |
Writer |
openWriter() |
String |
toString() |
URI |
toUri() |
protected CustomJavaFileObject(URI uri, JavaFileObject.Kind kind, String binaryName)
public String binaryName()
public InputStream openInputStream() throws IOException
openInputStream
in interface FileObject
IOException
public JavaFileObject.Kind getKind()
getKind
in interface JavaFileObject
public NestingKind getNestingKind()
getNestingKind
in interface JavaFileObject
public URI toUri()
toUri
in interface FileObject
public String getName()
getName
in interface FileObject
public OutputStream openOutputStream() throws IOException
openOutputStream
in interface FileObject
IOException
public Reader openReader(boolean ignoreEncodingErrors) throws IOException
openReader
in interface FileObject
IOException
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException
getCharContent
in interface FileObject
IOException
public Writer openWriter() throws IOException
openWriter
in interface FileObject
IOException
public long getLastModified()
getLastModified
in interface FileObject
public boolean delete()
delete
in interface FileObject
public boolean isNameCompatible(String simpleName, JavaFileObject.Kind kind)
isNameCompatible
in interface JavaFileObject
public Modifier getAccessLevel()
getAccessLevel
in interface JavaFileObject
Copyright © 2015. All Rights Reserved.