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 FileObjectIOExceptionpublic JavaFileObject.Kind getKind()
getKind in interface JavaFileObjectpublic NestingKind getNestingKind()
getNestingKind in interface JavaFileObjectpublic URI toUri()
toUri in interface FileObjectpublic String getName()
getName in interface FileObjectpublic OutputStream openOutputStream() throws IOException
openOutputStream in interface FileObjectIOExceptionpublic Reader openReader(boolean ignoreEncodingErrors) throws IOException
openReader in interface FileObjectIOExceptionpublic CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException
getCharContent in interface FileObjectIOExceptionpublic Writer openWriter() throws IOException
openWriter in interface FileObjectIOExceptionpublic long getLastModified()
getLastModified in interface FileObjectpublic boolean delete()
delete in interface FileObjectpublic boolean isNameCompatible(String simpleName, JavaFileObject.Kind kind)
isNameCompatible in interface JavaFileObjectpublic Modifier getAccessLevel()
getAccessLevel in interface JavaFileObjectCopyright © 2015. All Rights Reserved.