janino.net

org.codehaus.commons.compiler.jdk
Class ByteArrayJavaFileManager.ByteArrayJavaFileObject

java.lang.Object
  extended by javax.tools.SimpleJavaFileObject
      extended by org.codehaus.commons.compiler.jdk.ByteArrayJavaFileManager.ByteArrayJavaFileObject
All Implemented Interfaces:
FileObject, JavaFileObject
Enclosing class:
ByteArrayJavaFileManager<M extends JavaFileManager>

public static class ByteArrayJavaFileManager.ByteArrayJavaFileObject
extends SimpleJavaFileObject

Byte array-based implementation of JavaFileObject.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
 
Field Summary
 
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
 
Constructor Summary
ByteArrayJavaFileManager.ByteArrayJavaFileObject(String className, JavaFileObject.Kind kind)
           
 
Method Summary
 InputStream openInputStream()
           
 OutputStream openOutputStream()
           
 byte[] toByteArray()
           
 
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openReader, openWriter, toString, toUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteArrayJavaFileManager.ByteArrayJavaFileObject

public ByteArrayJavaFileManager.ByteArrayJavaFileObject(String className,
                                                        JavaFileObject.Kind kind)
Method Detail

openOutputStream

public OutputStream openOutputStream()
                              throws IOException
Specified by:
openOutputStream in interface FileObject
Overrides:
openOutputStream in class SimpleJavaFileObject
Throws:
IOException

toByteArray

public byte[] toByteArray()
Returns:
The bytes that were previously written to this JavaFileObject.

openInputStream

public InputStream openInputStream()
                            throws IOException
Specified by:
openInputStream in interface FileObject
Overrides:
openInputStream in class SimpleJavaFileObject
Throws:
IOException

janino.net