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 JavaFileObject
public boolean isNameCompatible(String simpleName, JavaFileObject.Kind kind)
isNameCompatible
in interface JavaFileObject
public URI toUri()
toUri
in interface FileObject
public String getName()
getName
in interface FileObject
public InputStream openInputStream() throws IOException
openInputStream
in interface FileObject
IOException
public OutputStream openOutputStream() throws IOException
openOutputStream
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 Modifier getAccessLevel()
getAccessLevel
in interface JavaFileObject
public NestingKind getNestingKind()
getNestingKind
in interface JavaFileObject
public Reader openReader(boolean ignoreEncodingErrors) throws IOException
openReader
in interface FileObject
IOException
Copyright © 2017 earcam. All rights reserved.