public class JavaClassObject extends SimpleJavaFileObject
JavaFileObject.Kind| Modifier and Type | Field and Description |
|---|---|
protected ByteArrayOutputStream |
byteArrayOutputStream |
kind, uri| Constructor and Description |
|---|
JavaClassObject(String name,
JavaFileObject.Kind kind)
Constructor to initialize uri of object from long class name
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Return contents of java code from stream instead of file
|
OutputStream |
openOutputStream() |
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openReader, openWriter, toString, toUriprotected final ByteArrayOutputStream byteArrayOutputStream
public JavaClassObject(String name, JavaFileObject.Kind kind)
name - file namekind - file typepublic byte[] getBytes()
public OutputStream openOutputStream() throws IOException
openOutputStream in interface FileObjectopenOutputStream in class SimpleJavaFileObjectIOExceptionCopyright © 2014. All rights reserved.