Class 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 of JavaFileObject.
    • 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
    • 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)  
      • Methods inherited from class javax.tools.SimpleJavaFileObject

        delete, getAccessLevel, getKind, getNestingKind, openOutputStream, openWriter, toString, toUri
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • isNameCompatible

        public boolean isNameCompatible​(@Nullable
                                        java.lang.String simpleName,
                                        @Nullable
                                        javax.tools.JavaFileObject.Kind kind)
        Specified by:
        isNameCompatible in interface javax.tools.JavaFileObject
        Overrides:
        isNameCompatible in class javax.tools.SimpleJavaFileObject
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface javax.tools.FileObject
        Overrides:
        getName in class javax.tools.SimpleJavaFileObject
      • openInputStream

        public java.io.InputStream openInputStream()
                                            throws java.io.IOException
        Specified by:
        openInputStream in interface javax.tools.FileObject
        Overrides:
        openInputStream in class javax.tools.SimpleJavaFileObject
        Throws:
        java.io.IOException
      • openReader

        public java.io.Reader openReader​(boolean ignoreEncodingErrors)
                                  throws java.io.IOException
        Specified by:
        openReader in interface javax.tools.FileObject
        Overrides:
        openReader in class javax.tools.SimpleJavaFileObject
        Throws:
        java.io.IOException
      • getCharContent

        public java.lang.CharSequence getCharContent​(boolean ignoreEncodingErrors)
                                              throws java.io.IOException
        Specified by:
        getCharContent in interface javax.tools.FileObject
        Overrides:
        getCharContent in class javax.tools.SimpleJavaFileObject
        Throws:
        java.io.IOException
      • getLastModified

        public long getLastModified()
        Specified by:
        getLastModified in interface javax.tools.FileObject
        Overrides:
        getLastModified in class javax.tools.SimpleJavaFileObject
      • getResourceFileName

        public java.lang.String getResourceFileName()