org.apache.struts2.compiler
Class MemoryJavaFileObject
java.lang.Object
javax.tools.SimpleJavaFileObject
org.apache.struts2.compiler.MemoryJavaFileObject
- All Implemented Interfaces:
- FileObject, JavaFileObject
public class MemoryJavaFileObject
- extends SimpleJavaFileObject
Captures the output of the java compiler in memory
Methods inherited from class javax.tools.SimpleJavaFileObject |
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openReader, openWriter, toString, toUri |
MemoryJavaFileObject
public MemoryJavaFileObject(String name,
JavaFileObject.Kind kind)
openInputStream
public InputStream openInputStream()
throws IOException,
IllegalStateException,
UnsupportedOperationException
- Specified by:
openInputStream
in interface FileObject
- Overrides:
openInputStream
in class SimpleJavaFileObject
- Throws:
IOException
IllegalStateException
UnsupportedOperationException
openOutputStream
public OutputStream openOutputStream()
throws IOException,
IllegalStateException,
UnsupportedOperationException
- Specified by:
openOutputStream
in interface FileObject
- Overrides:
openOutputStream
in class SimpleJavaFileObject
- Throws:
IOException
IllegalStateException
UnsupportedOperationException
toByteArray
public byte[] toByteArray()
Copyright © 2000–2018 Apache Software Foundation. All rights reserved.