jdeparser 1.0.0.Final-redhat-1

org.jboss.jdeparser.fmt
Class JSerializedObject

java.lang.Object
  extended by org.jboss.jdeparser.JResourceFile
      extended by 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.


Constructor Summary
JSerializedObject(String name, Object obj)
           
 
Method Summary
protected  void build(OutputStream os)
          called by JPackage to serialize the object
 
Methods inherited from class org.jboss.jdeparser.JResourceFile
isResource, name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSerializedObject

public JSerializedObject(String name,
                         Object obj)
                  throws IOException
Throws:
IOException - If the serialization fails, this exception is thrown
Method Detail

build

protected void build(OutputStream os)
              throws IOException
called by JPackage to serialize the object

Specified by:
build in class JResourceFile
Throws:
IOException

jdeparser 1.0.0.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.