|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.tools.SimpleJavaFileObject
things.thinger.kernel.basic.tools.LocalJavaFileObject
public class LocalJavaFileObject
This will be a local file object.
Version History
EPG - Initial - 8 JUL 07
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject |
---|
javax.tools.JavaFileObject.Kind |
Field Summary |
---|
Fields inherited from class javax.tools.SimpleJavaFileObject |
---|
kind, uri |
Constructor Summary | |
---|---|
LocalJavaFileObject(java.lang.String name,
java.lang.String actualName,
javax.tools.JavaFileObject.Kind kind,
java.io.File theFile)
Constructor. |
Method Summary | |
---|---|
java.lang.CharSequence |
getCharContent(boolean ignoreEncodingErrors)
We need to do this for the damn compiler. |
java.lang.String |
getName()
Gets a user-friendly name for this file object. |
java.io.InputStream |
openInputStream()
Get the file as an InputStream. |
java.io.OutputStream |
openOutputStream()
Get the file as an OutputStream. |
Methods inherited from class javax.tools.SimpleJavaFileObject |
---|
delete, getAccessLevel, getKind, getLastModified, getNestingKind, isNameCompatible, openReader, openWriter, toString, toUri |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LocalJavaFileObject(java.lang.String name, java.lang.String actualName, javax.tools.JavaFileObject.Kind kind, java.io.File theFile) throws java.lang.Throwable
name
- Simple name for the objectactualName
- The actual name of the file from the anchor. This will include the extension and stuff if it was actually there.kind
- The kind of JavaFileObject.theFile
- The file that represents this object.
java.lang.Throwable
SimpleJavaFileObject
Method Detail |
---|
public java.lang.CharSequence getCharContent(boolean ignoreEncodingErrors) throws java.io.IOException, java.lang.IllegalStateException, java.lang.UnsupportedOperationException
getCharContent
in interface javax.tools.FileObject
getCharContent
in class javax.tools.SimpleJavaFileObject
java.io.IOException
java.lang.IllegalStateException
java.lang.UnsupportedOperationException
public java.io.InputStream openInputStream() throws java.io.IOException, java.lang.IllegalStateException, java.lang.UnsupportedOperationException
openInputStream
in interface javax.tools.FileObject
openInputStream
in class javax.tools.SimpleJavaFileObject
java.io.IOException
java.lang.IllegalStateException
java.lang.UnsupportedOperationException
public java.io.OutputStream openOutputStream() throws java.io.IOException, java.lang.IllegalStateException, java.lang.UnsupportedOperationException
openOutputStream
in interface javax.tools.FileObject
openOutputStream
in class javax.tools.SimpleJavaFileObject
java.io.IOException
java.lang.IllegalStateException
java.lang.UnsupportedOperationException
public java.lang.String getName()
getName
in interface javax.tools.FileObject
getName
in class javax.tools.SimpleJavaFileObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |