public class MemoryJavaClassObject extends SimpleJavaFileObject
JavaFileObject.Kind| 限定符和类型 | 字段和说明 |
|---|---|
protected ByteArrayOutputStream |
stream |
kind, uri| 构造器和说明 |
|---|
MemoryJavaClassObject(String name,
JavaFileObject.Kind kind) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
getBytes() |
OutputStream |
openOutputStream() |
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openReader, openWriter, toString, toUriprotected final ByteArrayOutputStream stream
public MemoryJavaClassObject(String name, JavaFileObject.Kind kind)
public byte[] getBytes()
public OutputStream openOutputStream() throws IOException
openOutputStream 在接口中 FileObjectopenOutputStream 在类中 SimpleJavaFileObjectIOExceptionCopyright © 2020. All rights reserved.