Class JavaFileObjects.ResourceJavaFileObject
- java.lang.Object
-
- javax.tools.SimpleJavaFileObject
-
- org.codehaus.commons.compiler.jdk.util.JavaFileObjects.ResourceJavaFileObject
-
- All Implemented Interfaces:
FileObject,JavaFileObject
- Enclosing class:
- JavaFileObjects
public static final class JavaFileObjects.ResourceJavaFileObject extends SimpleJavaFileObject
Byte array-based implementation ofJavaFileObject.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
-
-
Field Summary
-
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharSequencegetCharContent(boolean ignoreEncodingErrors)longgetLastModified()InputStreamopenInputStream()ReaderopenReader(boolean ignoreEncodingErrors)-
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getKind, getName, getNestingKind, isNameCompatible, openOutputStream, openWriter, toString, toUri
-
-
-
-
Method Detail
-
openInputStream
public InputStream openInputStream() throws IOException
- Specified by:
openInputStreamin interfaceFileObject- Overrides:
openInputStreamin classSimpleJavaFileObject- Throws:
IOException
-
openReader
public Reader openReader(boolean ignoreEncodingErrors) throws IOException
- Specified by:
openReaderin interfaceFileObject- Overrides:
openReaderin classSimpleJavaFileObject- Throws:
IOException
-
getCharContent
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException
- Specified by:
getCharContentin interfaceFileObject- Overrides:
getCharContentin classSimpleJavaFileObject- Throws:
IOException
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfaceFileObject- Overrides:
getLastModifiedin classSimpleJavaFileObject
-
-