All Examples  This Package

Class examples.t3client.Serialization

java.lang.Object
   |
   +----examples.t3client.Serialization

public class Serialization
extends Object
implements WLSerializable
This class demonstrates how to write a class that implements weblogic.common.WLSerializable. Classes that need to travel between the WebLogic Server and T3Clients need to implement either this interface or java.io.Serializable.

You use the methods in WLObjectInput and WLObjectOutput to read and write the fields of each object to be serialized.

Author:
Copyright (c) 1996-99 by BEA WebXpress, Inc. All Rights Reserved.
See Also:
WLObjectInput, WLObjectOutput

Constructor Index

 o Serialization()
Default constructor.
 o Serialization(int, String)
This constructor sets up the object with some values.

Method Index

 o readObject(WLObjectInput)
Here we initialize the fields by reading from the stream.
 o writeObject(WLObjectOutput)
Here we write the fields to the stream using the methods in WLObjectOutput.

Constructors

 o Serialization
 public Serialization()
Default constructor. You must supply a default constructor.

 o Serialization
 public Serialization(int x,
                      String s)
This constructor sets up the object with some values. This particular object is made up of an int, a String, and a Hashtable of values.

Methods

 o readObject
 public void readObject(WLObjectInput in) throws IOException, ClassNotFoundException
Here we initialize the fields by reading from the stream. This method must read the fields in the same order that writeObject() writes them. Use the methods in WLObjectInput to read the fields.

Parameters:
in - WLObjectInput
 o writeObject
 public void writeObject(WLObjectOutput out) throws IOException
Here we write the fields to the stream using the methods in WLObjectOutput.

Parameters:
out - WLObjectOutput

All Examples  This Package