All Packages This Package Previous Next
Class sqlj.runtime.profile.util.SerProfileToClass
java.lang.Object
|
+----sqlj.runtime.profile.util.SerProfileToClass
- public class SerProfileToClass
- extends Object
This class converts a serialized profile instance to class bytecode
format. It does so by creating a java class that contains a static
string member whose contents are the bytes of the serialized profile.
The created class implements the SerializedProfile interface so it can
be used as a handle by which the original serialized profile may be
retrieved.
This class may be used either as a command-line tool or as a
java callable class.
- See Also:
- SerializedProfile
-
SerProfileToClass(String)
- Creates a new serialized object translator that will work with a
profile that has the given name.
-
main(String[])
- The command-line entry point to this class transforms a file
representing a serialized profile into a class inplementing the
serialized profile interface.
-
writeProfile(PrintWriter, InputStream)
- Translates the serialized profile contains in the given intput stream
into a java class written to the given print writer.
SerProfileToClass
public SerProfileToClass(String profileName)
- Creates a new serialized object translator that will work with a
profile that has the given name. The name should be the full name of
the profile itself without an .ser or .class extensions ("x.y.z", for
example).
- Parameters:
- profileName - the fully qualified name of the profile to translate.
main
public static void main(String args[])
- The command-line entry point to this class transforms a file
representing a serialized profile into a class inplementing the
serialized profile interface. A number of options exists that allow
management of intermediate files. Invoke the class with no arguments
for a usage listing.
writeProfile
public void writeProfile(PrintWriter out,
InputStream bytes) throws IOException
- Translates the serialized profile contains in the given intput stream
into a java class written to the given print writer. The resultant
class is created in java source form, and thus must be compiled into
java bytecode before being used. The class is written out including
any neccessary package name and imports.
- Parameters:
- out - the print writer on which to write the resulting serialized
profile class (in java source format).
- bytes - an input stream containing a serialized profile object.
All Packages This Package Previous Next