Class InMemoryJavaSourceFileObject

  • All Implemented Interfaces:
    javax.tools.FileObject, javax.tools.JavaFileObject

    public class InMemoryJavaSourceFileObject
    extends IdentifiedJavaFileObject
    • Field Detail

      • source

        private java.lang.String source
    • Constructor Detail

      • InMemoryJavaSourceFileObject

        protected InMemoryJavaSourceFileObject​(java.lang.String name)
      • InMemoryJavaSourceFileObject

        public InMemoryJavaSourceFileObject​(java.lang.String name,
                                            java.lang.String source)
      • InMemoryJavaSourceFileObject

        public InMemoryJavaSourceFileObject​(java.lang.String name,
                                            java.io.InputStream is)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • InMemoryJavaSourceFileObject

        public InMemoryJavaSourceFileObject​(java.nio.file.Path path)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • InMemoryJavaSourceFileObject

        public InMemoryJavaSourceFileObject​(IdentifiedSource source)
    • Method Detail

      • setSource

        void setSource​(java.lang.String source)
      • 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