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
 
  
  -  
	Serialization()
   -   Default constructor.
  
 -  
	Serialization(int, String)
   -   This constructor sets up the object
 with some values.
 
  
  -  
	readObject(WLObjectInput)
   -   Here we initialize the fields by reading from the stream.
  
 -  
	writeObject(WLObjectOutput)
   -   Here we write the fields to the stream using the methods in
 WLObjectOutput.
 
  
Serialization
 public Serialization()
  -  Default constructor. You must supply
 a default constructor.
 
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.
 
  
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
  
 
 
 
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