Top Description Fields Constructors Methods
com.sun.codemodel.fmt

public Class JSerializedObject

extends JResourceFile
Class Inheritance
Imports
java.io.IOException, .ObjectOutputStream, .OutputStream, com.sun.codemodel.JResourceFile

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

Field Summary

Modifier and TypeField and Description
private final Object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
build(OutputStream os)

Implements abstract com.sun.codemodel.JResourceFile.build.

called by JPackage to serialize the object

Inherited from com.sun.codemodel.JResourceFile:
isResourcename

Field Detail

objback to summary
private final Object obj

Constructor Detail

JSerializedObjectback to summary
public JSerializedObject(String name, Object obj) throws IOException
Exceptions
IOException:
If the serialization fails, this exception is thrown

Method Detail

buildback to summary
protected void build(OutputStream os) throws IOException

Implements abstract com.sun.codemodel.JResourceFile.build.

called by JPackage to serialize the object

Annotations
@Override