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.
Method Summary |
protected void |
build(OutputStream os)
called by JPackage to serialize the object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSerializedObject
public JSerializedObject(String name,
Object obj)
throws IOException
- Throws:
IOException
- If the serialization fails, this exception is thrown
build
protected void build(OutputStream os)
throws IOException
- called by JPackage to serialize the object
- Specified by:
build
in class JResourceFile
- Throws:
IOException
Copyright © 2005-2013 Oracle. All Rights Reserved.