|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.tools.ForwardingFileObject<FileObject>
com.sun.tools.javac.processing.JavacFiler.FilerOutputFileObject
private class JavacFiler.FilerOutputFileObject
Wrap a JavaFileObject to manage writing by the Filer.
| Field Summary | |
|---|---|
private java.lang.String |
name
|
private boolean |
opened
|
| Fields inherited from class javax.tools.ForwardingFileObject |
|---|
fileObject |
| Constructor Summary | |
|---|---|
JavacFiler.FilerOutputFileObject(java.lang.String name,
FileObject fileObject)
|
|
| Method Summary | |
|---|---|
boolean |
delete()
Deletes this file object. |
java.lang.CharSequence |
getCharContent(boolean ignoreEncodingErrors)
Gets the character content of this file object, if available. |
java.io.InputStream |
openInputStream()
Gets an InputStream for this file object. |
java.io.OutputStream |
openOutputStream()
Gets an OutputStream for this file object. |
java.io.Reader |
openReader(boolean ignoreEncodingErrors)
Gets a reader for this object. |
java.io.Writer |
openWriter()
Gets a Writer for this file object. |
| Methods inherited from class javax.tools.ForwardingFileObject |
|---|
getLastModified, getName, toUri |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean opened
private java.lang.String name
| Constructor Detail |
|---|
JavacFiler.FilerOutputFileObject(java.lang.String name,
FileObject fileObject)
| Method Detail |
|---|
public java.io.OutputStream openOutputStream()
throws java.io.IOException
FileObject
openOutputStream in interface FileObjectopenOutputStream in class ForwardingFileObject<FileObject>java.io.IOException - if an I/O error occurred
public java.io.Writer openWriter()
throws java.io.IOException
FileObject
openWriter in interface FileObjectopenWriter in class ForwardingFileObject<FileObject>java.io.IOException - if an I/O error occurred
public java.io.InputStream openInputStream()
throws java.io.IOException
FileObject
openInputStream in interface FileObjectopenInputStream in class ForwardingFileObject<FileObject>java.io.IOException - if an I/O error occurred
public java.io.Reader openReader(boolean ignoreEncodingErrors)
throws java.io.IOException
FileObjectignoreEncodingErrors is true.
openReader in interface FileObjectopenReader in class ForwardingFileObject<FileObject>ignoreEncodingErrors - ignore encoding errors if true
java.io.IOException - if an I/O error occurred
public java.lang.CharSequence getCharContent(boolean ignoreEncodingErrors)
throws java.io.IOException
FileObjectignoreEncodingErrors is true.
getCharContent in interface FileObjectgetCharContent in class ForwardingFileObject<FileObject>ignoreEncodingErrors - ignore encoding errors if true
null otherwise
java.io.IOException - if an I/O error occurredpublic boolean delete()
FileObject
delete in interface FileObjectdelete in class ForwardingFileObject<FileObject>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||