com.sun.codemodel.fmt
Class JSerializedObject

java.lang.Object  extended by com.sun.codemodel.JResourceFile      extended by 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
JSerializedObject(String name, Object obj)
           
 
Method Summary
protected  voidbuild(OutputStream os)
          called by JPackage to serialize the object
 
Methods inherited from class com.sun.codemodel.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


Copyright © 2005-2011
Oracle. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14