public class MemJavaFileObject extends SimpleJavaFileObject
JavaFileObject.Kind
kind, uri
Constructor and Description |
---|
MemJavaFileObject(String urlPrefix,
String name,
JavaFileObject.Kind kind) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getByteArray() |
CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
String |
getName() |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
delete, getAccessLevel, getKind, getLastModified, getNestingKind, isNameCompatible, openReader, openWriter, toString, toUri
public MemJavaFileObject(String urlPrefix, String name, JavaFileObject.Kind kind)
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException
getCharContent
in interface FileObject
getCharContent
in class SimpleJavaFileObject
IOException
public String getName()
getName
in interface FileObject
getName
in class SimpleJavaFileObject
public byte[] getByteArray()
public InputStream openInputStream() throws IOException
openInputStream
in interface FileObject
openInputStream
in class SimpleJavaFileObject
IOException
public OutputStream openOutputStream() throws IOException
openOutputStream
in interface FileObject
openOutputStream
in class SimpleJavaFileObject
IOException
Copyright © 2010–2024. All rights reserved.