public class MemoryJavaFileObject extends SimpleJavaFileObject
JavaFileObject.Kindkind, 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, toUripublic MemoryJavaFileObject(String name, JavaFileObject.Kind kind)
public InputStream openInputStream() throws IOException, IllegalStateException, UnsupportedOperationException
openInputStream in interface FileObjectopenInputStream in class SimpleJavaFileObjectIOExceptionIllegalStateExceptionUnsupportedOperationExceptionpublic OutputStream openOutputStream() throws IOException, IllegalStateException, UnsupportedOperationException
openOutputStream in interface FileObjectopenOutputStream in class SimpleJavaFileObjectIOExceptionIllegalStateExceptionUnsupportedOperationExceptionpublic byte[] toByteArray()
Copyright © 2000–2021 Apache Software Foundation. All rights reserved.