org.apache.struts2.compiler
Class MemoryJavaFileObject
java.lang.Object
javax.tools.SimpleJavaFileObject
org.apache.struts2.compiler.MemoryJavaFileObject
- All Implemented Interfaces:
- javax.tools.FileObject, javax.tools.JavaFileObject
public class MemoryJavaFileObject
- extends javax.tools.SimpleJavaFileObject
Captures the output of the java compiler in memory
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject |
javax.tools.JavaFileObject.Kind |
Fields inherited from class javax.tools.SimpleJavaFileObject |
kind, uri |
Constructor Summary |
MemoryJavaFileObject(java.lang.String name,
javax.tools.JavaFileObject.Kind kind)
|
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 |
MemoryJavaFileObject
public MemoryJavaFileObject(java.lang.String name,
javax.tools.JavaFileObject.Kind kind)
openInputStream
public java.io.InputStream openInputStream()
throws java.io.IOException,
java.lang.IllegalStateException,
java.lang.UnsupportedOperationException
- Specified by:
openInputStream
in interface javax.tools.FileObject
- Overrides:
openInputStream
in class javax.tools.SimpleJavaFileObject
- Throws:
java.io.IOException
java.lang.IllegalStateException
java.lang.UnsupportedOperationException
openOutputStream
public java.io.OutputStream openOutputStream()
throws java.io.IOException,
java.lang.IllegalStateException,
java.lang.UnsupportedOperationException
- Specified by:
openOutputStream
in interface javax.tools.FileObject
- Overrides:
openOutputStream
in class javax.tools.SimpleJavaFileObject
- Throws:
java.io.IOException
java.lang.IllegalStateException
java.lang.UnsupportedOperationException
toByteArray
public byte[] toByteArray()
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.