Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06

weblogic.common
Interface WLObjectOutput

All Superinterfaces:
DataOutput, ObjectOutput

public interface WLObjectOutput
extends ObjectOutput

This interface, which is the interface implemented by the output streams set up between the WebLogic Server and its clients, is passed as an argument to the writeObject() method in the interface WLSerializable.

Methods in this interface can be used by classes implementing the writeObject() method in the weblogic.classes.WLSerializable interface.

See Also:
WLObjectInput

Method Summary
 void writeAbbrevString(String s)
          Deprecated. Please use writeImmutable instead
 void writeArrayList(ArrayList lst)
          Writes a java.util.ArrayList to the output stream.
 void writeArrayOfObjects(Object[] aoo)
          Writes an array of Objects to the output stream.
 void writeBytes(byte[] val)
          Writes an array of bytes to the output stream.
 void writeDate(Date dateval)
          Writes a java.lang.Date (or its equally famous subclass, java.sql.Date) to the output stream.
 void writeImmutable(Object o)
          Writes a commonly used object to the output stream the object is abbreviated for greater efficiency.
 void writeObjectWL(Object o)
          Writes a WebLogic serializable object to the output stream.
 void writeProperties(Properties propval)
          Writes a java.util.Properties to the output stream.
 void writeString(String s)
          Writes a java.lang.String to the output stream.
 
Methods inherited from interface java.io.ObjectOutput
close, flush, write, write, write, writeObject
 
Methods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Method Detail

writeObjectWL

void writeObjectWL(Object o)
                   throws IOException
Writes a WebLogic serializable object to the output stream.

Parameters:
o - Object to be written
Throws:
IOException

writeString

void writeString(String s)
                 throws IOException
Writes a java.lang.String to the output stream.

Parameters:
s - String to be written
Throws:
IOException

writeDate

void writeDate(Date dateval)
               throws IOException
Writes a java.lang.Date (or its equally famous subclass, java.sql.Date) to the output stream.

Parameters:
dateval - Date to be written
Throws:
IOException

writeArrayList

void writeArrayList(ArrayList lst)
                    throws IOException
Writes a java.util.ArrayList to the output stream.

Parameters:
lst - ArrayList to be written
Throws:
IOException

writeProperties

void writeProperties(Properties propval)
                     throws IOException
Writes a java.util.Properties to the output stream.

Parameters:
propval - Properties object to be written
Throws:
IOException

writeBytes

void writeBytes(byte[] val)
                throws IOException
Writes an array of bytes to the output stream.

Parameters:
val - Value to be written
Throws:
IOException - if there is a serialization error

writeArrayOfObjects

void writeArrayOfObjects(Object[] aoo)
                         throws IOException
Writes an array of Objects to the output stream.

Parameters:
aoo - Value to be written
Throws:
IOException - if there is a serialization error

writeAbbrevString

void writeAbbrevString(String s)
                       throws IOException
Deprecated. Please use writeImmutable instead

Writes a commonly used string value to the output stream the string is abbreviated for greater efficiency. The deserialization code must use readAbbrevString() to deserialize the string

Parameters:
s - String to be written
Throws:
IOException - if there is an error during serialization

writeImmutable

void writeImmutable(Object o)
                    throws IOException
Writes a commonly used object to the output stream the object is abbreviated for greater efficiency. The deserialization code must use readImmutable() to deserialize the object

Parameters:
o - String to be written
Throws:
IOException - if there is an error during serialization

Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.6)

Part Number E13941-06