public class MemoryByteCode extends MemoryFile implements Serializable
JavaFileObject.Kind
kind, uri
Constructor and Description |
---|
MemoryByteCode() |
MemoryByteCode(String name)
constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
byte[] |
getBytes()
return byte code as byte sequence
|
CharSequence |
getCharContent(boolean ignoreEncodingErrors)
get byte code content as character sequence
|
String |
getClassName()
return the class name of this object
|
int |
hashCode() |
boolean |
isInnerClass() |
InputStream |
openInputStream()
open new input stream
|
OutputStream |
openOutputStream()
open new output stream
|
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openReader, openWriter, toString, toUri
public MemoryByteCode()
public MemoryByteCode(String name)
name
- class namepublic CharSequence getCharContent(boolean ignoreEncodingErrors)
getCharContent
in interface FileObject
getCharContent
in class SimpleJavaFileObject
ignoreEncodingErrors
- flag if encoding errors should be ignoredpublic OutputStream openOutputStream()
openOutputStream
in interface FileObject
openOutputStream
in class SimpleJavaFileObject
public InputStream openInputStream()
openInputStream
in interface FileObject
openInputStream
in class SimpleJavaFileObject
public byte[] getBytes()
public String getClassName()
public boolean isInnerClass()
Copyright © 2017. All rights reserved.