public class InMemoryClassJavaFileObject extends SimpleJavaFileObject
JavaFileObject.Kind
kind, uri
Constructor and Description |
---|
InMemoryClassJavaFileObject(String className,
JavaFileObject.Kind kind) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes() |
String |
getClassName() |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openReader, openWriter, toString, toUri
public InMemoryClassJavaFileObject(String className, JavaFileObject.Kind kind)
public OutputStream openOutputStream() throws IOException
openOutputStream
in interface FileObject
openOutputStream
in class SimpleJavaFileObject
IOException
public InputStream openInputStream() throws IOException
openInputStream
in interface FileObject
openInputStream
in class SimpleJavaFileObject
IOException
public byte[] getBytes()
public String getClassName()
Copyright © 2024. All rights reserved.