org.jboss.jdeparser.fmt
Class JSerializedObject
java.lang.Object
org.jboss.jdeparser.JResourceFile
org.jboss.jdeparser.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 © 2013 JBoss by Red Hat. All Rights Reserved.