Package org.h2.util

Class SourceCompiler.JavaClassObject

  • All Implemented Interfaces:
    javax.tools.FileObject, javax.tools.JavaFileObject
    Enclosing class:
    SourceCompiler

    static class SourceCompiler.JavaClassObject
    extends javax.tools.SimpleJavaFileObject
    An in-memory java class object.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.tools.JavaFileObject

        javax.tools.JavaFileObject.Kind
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.ByteArrayOutputStream out  
      • Fields inherited from class javax.tools.SimpleJavaFileObject

        kind, uri
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaClassObject​(java.lang.String name, javax.tools.JavaFileObject.Kind kind)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBytes()  
      java.io.OutputStream openOutputStream()  
      • Methods inherited from class javax.tools.SimpleJavaFileObject

        delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openReader, openWriter, toString, toUri
      • Methods inherited from class java.lang.Object

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

      • out

        private final java.io.ByteArrayOutputStream out
    • Constructor Detail

      • JavaClassObject

        public JavaClassObject​(java.lang.String name,
                               javax.tools.JavaFileObject.Kind kind)
    • Method Detail

      • getBytes

        public byte[] getBytes()
      • 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