org.mule.devkit.model.code.fmt
Class SerializedObject

java.lang.Object
  extended by org.mule.devkit.model.code.ResourceFile
      extended by org.mule.devkit.model.code.fmt.SerializedObject

public class SerializedObject
extends ResourceFile

A simple class that takes an object and serializes it into a file in the parent package with the given name.


Constructor Summary
SerializedObject(String name, Object obj)
           
 
Method Summary
protected  void build(OutputStream os)
          called by Package to serialize the object
 
Methods inherited from class org.mule.devkit.model.code.ResourceFile
isResource, name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializedObject

public SerializedObject(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 Package to serialize the object

Specified by:
build in class ResourceFile
Throws:
IOException


Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.