Package com.sun.codemodel.fmt
Class JSerializedObject
- java.lang.Object
-
- com.sun.codemodel.JResourceFile
-
- com.sun.codemodel.fmt.JSerializedObject
-
public class JSerializedObject extends JResourceFile
A simple class that takes an object and serializes it into a file in the parent package with the given name.
-
-
Constructor Summary
Constructors Constructor Description JSerializedObject(java.lang.String name, java.lang.Object obj)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
build(java.io.OutputStream os)
called by JPackage to serialize the object-
Methods inherited from class com.sun.codemodel.JResourceFile
isResource, name
-
-
-
-
Method Detail
-
build
protected void build(java.io.OutputStream os) throws java.io.IOException
called by JPackage to serialize the object- Specified by:
build
in classJResourceFile
- Throws:
java.io.IOException
-
-