Class JavaFileObjects.ResourceJavaFileObject
- java.lang.Object
-
- javax.tools.SimpleJavaFileObject
-
- org.codehaus.commons.compiler.jdk.util.JavaFileObjects.ResourceJavaFileObject
-
- All Implemented Interfaces:
javax.tools.FileObject
,javax.tools.JavaFileObject
- Enclosing class:
- JavaFileObjects
public static final class JavaFileObjects.ResourceJavaFileObject extends javax.tools.SimpleJavaFileObject
Byte array-based implementation ofJavaFileObject
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.CharSequence
getCharContent(boolean ignoreEncodingErrors)
long
getLastModified()
java.lang.String
getName()
java.lang.String
getResourceFileName()
boolean
isNameCompatible(java.lang.String simpleName, javax.tools.JavaFileObject.Kind kind)
java.io.InputStream
openInputStream()
java.io.Reader
openReader(boolean ignoreEncodingErrors)
-
-
-
Method Detail
-
isNameCompatible
public boolean isNameCompatible(@Nullable java.lang.String simpleName, @Nullable javax.tools.JavaFileObject.Kind kind)
- Specified by:
isNameCompatible
in interfacejavax.tools.JavaFileObject
- Overrides:
isNameCompatible
in classjavax.tools.SimpleJavaFileObject
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacejavax.tools.FileObject
- Overrides:
getName
in classjavax.tools.SimpleJavaFileObject
-
openInputStream
public java.io.InputStream openInputStream() throws java.io.IOException
- Specified by:
openInputStream
in interfacejavax.tools.FileObject
- Overrides:
openInputStream
in classjavax.tools.SimpleJavaFileObject
- Throws:
java.io.IOException
-
openReader
public java.io.Reader openReader(boolean ignoreEncodingErrors) throws java.io.IOException
- Specified by:
openReader
in interfacejavax.tools.FileObject
- Overrides:
openReader
in classjavax.tools.SimpleJavaFileObject
- Throws:
java.io.IOException
-
getCharContent
public java.lang.CharSequence getCharContent(boolean ignoreEncodingErrors) throws java.io.IOException
- Specified by:
getCharContent
in interfacejavax.tools.FileObject
- Overrides:
getCharContent
in classjavax.tools.SimpleJavaFileObject
- Throws:
java.io.IOException
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interfacejavax.tools.FileObject
- Overrides:
getLastModified
in classjavax.tools.SimpleJavaFileObject
-
getResourceFileName
public java.lang.String getResourceFileName()
-
-