Class InMemoryJavaClassFileObject

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

    public class InMemoryJavaClassFileObject
    extends IdentifiedJavaFileObject
    • Field Detail

      • byteStream

        private java.io.ByteArrayOutputStream byteStream
    • Constructor Detail

      • InMemoryJavaClassFileObject

        public InMemoryJavaClassFileObject​(java.lang.String name,
                                           ClassesProvider classProvider,
                                           LoggingSwitch loggingSwitch)
      • InMemoryJavaClassFileObject

        public InMemoryJavaClassFileObject​(java.lang.String name,
                                           ClassesProvider classProvider)
    • Method Detail

      • 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
      • 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
      • openOutputStream

        public java.io.OutputStream openOutputStream()
                                              throws java.io.IOException
        Specified by:
        openOutputStream in interface javax.tools.FileObject
        Overrides:
        openOutputStream in class javax.tools.SimpleJavaFileObject
        Throws:
        java.io.IOException