public class SmartFileObject extends Object implements JavaFileObject
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
JavaFileObject.Kind| Constructor and Description |
|---|
SmartFileObject(JavaFileObject r,
PrintWriter pw) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete() |
boolean |
equals(Object other) |
Modifier |
getAccessLevel() |
CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
JavaFileObject.Kind |
getKind() |
long |
getLastModified() |
String |
getName() |
NestingKind |
getNestingKind() |
int |
hashCode() |
boolean |
isNameCompatible(String simpleName,
JavaFileObject.Kind kind) |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
Reader |
openReader(boolean ignoreEncodingErrors) |
Writer |
openWriter() |
URI |
toUri() |
public SmartFileObject(JavaFileObject r, PrintWriter pw)
public JavaFileObject.Kind getKind()
getKind in interface JavaFileObjectpublic boolean isNameCompatible(String simpleName, JavaFileObject.Kind kind)
isNameCompatible in interface JavaFileObjectpublic URI toUri()
toUri in interface FileObjectpublic String getName()
getName in interface FileObjectpublic InputStream openInputStream() throws IOException
openInputStream in interface FileObjectIOExceptionpublic OutputStream openOutputStream() throws IOException
openOutputStream 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 Modifier getAccessLevel()
getAccessLevel in interface JavaFileObjectpublic NestingKind getNestingKind()
getNestingKind in interface JavaFileObjectpublic Reader openReader(boolean ignoreEncodingErrors) throws IOException
openReader in interface FileObjectIOExceptionCopyright © 2017 earcam. All rights reserved.