Package org.jpmml.codemodel
Class ByteArrayClassFileObject
- java.lang.Object
-
- javax.tools.SimpleJavaFileObject
-
- org.jpmml.codemodel.ClassFileObject
-
- org.jpmml.codemodel.ByteArrayClassFileObject
-
- All Implemented Interfaces:
FileObject,JavaFileObject
public class ByteArrayClassFileObject extends ClassFileObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.tools.JavaFileObject
JavaFileObject.Kind
-
-
Field Summary
-
Fields inherited from class javax.tools.SimpleJavaFileObject
kind, uri
-
-
Constructor Summary
Constructors Constructor Description ByteArrayClassFileObject(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStreamopenOutputStream()byte[]toByteArray()JClassFiletoClassFile()-
Methods inherited from class org.jpmml.codemodel.ClassFileObject
getPackageName, getSimpleName
-
Methods inherited from class javax.tools.SimpleJavaFileObject
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openReader, openWriter, toString, toUri
-
-
-
-
Constructor Detail
-
ByteArrayClassFileObject
public ByteArrayClassFileObject(String name)
-
-
Method Detail
-
toClassFile
public JClassFile toClassFile()
-
toByteArray
public byte[] toByteArray()
-
openOutputStream
public OutputStream openOutputStream() throws IOException
- Specified by:
openOutputStreamin interfaceFileObject- Overrides:
openOutputStreamin classSimpleJavaFileObject- Throws:
IOException
-
-