Class JavaInMemoryFileObject

  • All Implemented Interfaces:
    FileObject, JavaFileObject

    public class JavaInMemoryFileObject
    extends JarFileObject
    A SimpleJavaFileObject implementation that forwards the content of the file to a Jar output stream instead of writing it to disk. Since the Jar can be shared between multiple threads, a semaphore is used to ensure exclusive access to the output stream.