public class MemoryJavaFileObject extends SimpleJavaFileObject
JavaFileObject.Kind
kind, uri
Constructor and Description |
---|
MemoryJavaFileObject(String name,
JavaFileObject.Kind kind) |
Modifier and Type | Method and Description |
---|---|
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
byte[] |
toByteArray() |
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openReader, openWriter, toString, toUri
public MemoryJavaFileObject(String name, JavaFileObject.Kind kind)
public InputStream openInputStream() throws IOException, IllegalStateException, UnsupportedOperationException
openInputStream
in interface FileObject
openInputStream
in class SimpleJavaFileObject
IOException
IllegalStateException
UnsupportedOperationException
public OutputStream openOutputStream() throws IOException, IllegalStateException, UnsupportedOperationException
openOutputStream
in interface FileObject
openOutputStream
in class SimpleJavaFileObject
IOException
IllegalStateException
UnsupportedOperationException
public byte[] toByteArray()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.