<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.io.ObjectOutputStream
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.io.html">This Package</a>  <a href="java.io.ObjectInputStream.html#_top_">Previous</a>  <a href="java.io.ObjectStreamClass.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.io.ObjectOutputStream
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.io.OutputStream.html#_top_">java.io.OutputStream</a>
           |
           +----java.io.ObjectOutputStream
</pre>
<hr>
<dl>
  <dt> public class <b>ObjectOutputStream</b>
  <dt> extends <a href="java.io.OutputStream.html#_top_">OutputStream</a>
  <dt> implements <a href="java.io.ObjectOutput.html#_top_">ObjectOutput</a>, ObjectStreamConstants
</dl>
An ObjectOutputStream writes primitive data types and graphs of
 Java objects to an OutputStream.  The objects can be read
 (reconstituted) using an ObjectInputStream.
 Persistent storage of objects can be accomplished by using a file for
 the stream.
 If the stream is a network socket stream, the objects can be reconsituted
 on another host or in another process. <p>
 Only objects that support the java.io.Serializable interface can be
 written to streams.
 The class of each serializable object is encoded including the class
 name and signature of the class, the values of the
 object's fields and arrays, and the closure of any other objects
 referenced from the initial objects. <p>
 The method <STRONG>writeObject</STRONG> is used to write an object
 to the stream.  Any object, including Strings and arrays, is
 written with writeObject. Multiple objects or primitives can be
 written to the stream.  The objects must be read back from the
 corresponding ObjectInputstream with the same types and in the same
 order as they were written.<p>
 Primitive data types can also be written to the stream using the
 appropriate methods from DataOutput. Strings can also be written
 using the writeUTF method.<p>
 The default serialization mechanism for an object writes the class
 of the object, the class signature, and the values of all
 non-transient and non-static fields.  References to other objects
 (except in transient or static fields) cause those objects to be
 written also. Multiple references to a single object are encoded
 using a reference sharing mechanism so that graphs of objects can
 be restored to the same shape as when the original was written. <p>
 For example to write an object that can be read by the example in ObjectInputStream: <br>
 <PRE>
	FileOutputStream ostream = new FileOutputStream("t.tmp");
	ObjectOutputStream p = new ObjectOutputStream(ostream);
	p.writeInt(12345);
	p.writeObject("Today");
	p.writeObject(new Date());
	p.flush();
	ostream.close();
 </PRE>
 Classes that require special handling during the serialization and deserialization
 process must implement special methods with these exact signatures: <p>
 <PRE>
 private void readObject(java.io.ObjectInputStream stream)
     throws IOException, ClassNotFoundException;
 private void writeObject(java.io.ObjectOutputStream stream)
     throws IOException
 </PRE><p>
 The writeObject method is responsible for writing the state of
 the object for its particular class so that the corresponding
 readObject method can restore it.
 The method does not need to concern itself with the
 state belonging to the object's superclasses or subclasses.
 State is saved by writing the individual fields to the ObjectOutputStream
 using the writeObject method or by using the methods for
 primitive data types supported by DataOutput. <p>
 Serialization does not write out the fields of any object that does
 not implement the java.io.Serializable interface.  Subclasses of
 Objects that are not serializable can be serializable. In this case
 the non-serializable class must have a no-arg constructor to allow
 its fields to be initialized.  In this case it is the
 responsibility of the subclass to save and restore the state of the
 non-serializable class. It is frequently the case that the fields
 of that class are accessible (public, package, or protected) or
 that there are get and set methods that can be used to restore the
 state. <p>
 Serialization of an object can be prevented by implementing writeObject
 and readObject methods that throw the NotSerializableException.
 The exception will be caught by the ObjectOutputStream and abort the
 serialization process.
 Implementing the Externalizable interface allows the object to
 assume complete control over the contents and format of the object's
 serialized form.  The methods of the Externalizable interface,
 writeExternal and readExternal, are called to save and restore the
 objects state.  When implemented by a class they can write and read
 their own state using all of the methods of ObjectOutput and
 ObjectInput.  It is the responsibility of the objects to handle any
 versioning that occurs.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.io.DataOutput.html#_top_">DataOutput</a>, <a href="java.io.ObjectInputStream.html#_top_">ObjectInputStream</a>, <a href="java.io.Serializable.html#_top_">Serializable</a>, <a href="java.io.Externalizable.html#_top_">Externalizable</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#ObjectOutputStream(java.io.OutputStream)"><b>ObjectOutputStream</b></a>(OutputStream)
  <dd>  Creates an ObjectOutputStream that writes to the specified OutputStream.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#annotateClass(java.lang.Class)"><b>annotateClass</b></a>(Class)
  <dd>  Subclasses may implement this method to allow class data to be stored
 in the stream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#close()"><b>close</b></a>()
  <dd>  Closes the stream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#defaultWriteObject()"><b>defaultWriteObject</b></a>()
  <dd>  Write the non-static and non-transient fields of the current class
 to this stream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#drain()"><b>drain</b></a>()
  <dd>  Drain any buffered data in ObjectOutputStream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#enableReplaceObject(boolean)"><b>enableReplaceObject</b></a>(boolean)
  <dd>  Enable the stream to do replacement of objects in the stream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#flush()"><b>flush</b></a>()
  <dd>  Flushes the stream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#replaceObject(java.lang.Object)"><b>replaceObject</b></a>(Object)
  <dd> This method will allow trusted subclasses of ObjectOutputStream
 to substitute one object for another during
 serialization.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#reset()"><b>reset</b></a>()
  <dd>  Reset will disregard the state of any objects already written
 to the stream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#write(byte[])"><b>write</b></a>(byte[])
  <dd>  Writes an array of bytes.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#write(byte[], int, int)"><b>write</b></a>(byte[], int, int)
  <dd>  Writes a sub array of bytes.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#write(int)"><b>write</b></a>(int)
  <dd>  Writes a byte.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeBoolean(boolean)"><b>writeBoolean</b></a>(boolean)
  <dd>  Writes a boolean.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeByte(int)"><b>writeByte</b></a>(int)
  <dd>  Writes an 8 bit byte.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeBytes(java.lang.String)"><b>writeBytes</b></a>(String)
  <dd>  Writes a String as a sequence of bytes.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeChar(int)"><b>writeChar</b></a>(int)
  <dd>  Writes a 16 bit char.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeChars(java.lang.String)"><b>writeChars</b></a>(String)
  <dd>  Writes a String as a sequence of chars.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeDouble(double)"><b>writeDouble</b></a>(double)
  <dd>  Writes a 64 bit double.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeFloat(float)"><b>writeFloat</b></a>(float)
  <dd>  Writes a 32 bit float.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeInt(int)"><b>writeInt</b></a>(int)
  <dd>  Writes a 32 bit int.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeLong(long)"><b>writeLong</b></a>(long)
  <dd>  Writes a 64 bit long.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeObject(java.lang.Object)"><b>writeObject</b></a>(Object)
  <dd>  Write the specified object to the ObjectOutputStream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeShort(int)"><b>writeShort</b></a>(int)
  <dd>  Writes a 16 bit short.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeStreamHeader()"><b>writeStreamHeader</b></a>()
  <dd>  The writeStreamHeader method is provided so subclasses can
 append or prepend their own header to the stream.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#writeUTF(java.lang.String)"><b>writeUTF</b></a>(String)
  <dd>  Writes a String in UTF format.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ObjectOutputStream"></a>
<a name="ObjectOutputStream(java.io.OutputStream)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ObjectOutputStream</b>
<pre>
 public ObjectOutputStream(<a href="java.io.OutputStream.html#_top_">OutputStream</a> out) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Creates an ObjectOutputStream that writes to the specified OutputStream.
 The stream header is written to the stream. The caller may want to call
 flush immediately so that the corresponding ObjectInputStream can read
 the header immediately.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> Any exception thrown by the underlying OutputStream.
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="writeObject(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeObject"><b>writeObject</b></a>
<pre>
 public final void writeObject(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Write the specified object to the ObjectOutputStream.
 The class of the object, the signature of the class, and the values
 of the non-transient and non-static fields of the class and all
 of its supertypes are written.  Default serialization for a class can be
 overridden using the writeObject and the readObject methods.
 Objects referenced by this object are written transitively so
 that a complete equivalent graph of objects can be
 reconstructed by an ObjectInputStream.  <p>
 Exceptions are thrown for
 problems with the OutputStream and for classes that should not be
 serialized.  All exceptions are fatal to the OutputStream, which
 is left in an indeterminate state, and it is up to the caller
 to ignore or recover the stream state.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.io.InvalidClassException.html#_top_">InvalidClassException</a>
    <dd> Something is wrong with a class used by
	   serialization.
    <dt> <b>Throws:</b> <a href="java.io.NotSerializableException.html#_top_">NotSerializableException</a>
    <dd> Some object to be serialized does not
	  implement the java.io.Serializable interface.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> Any exception thrown by the underlying OutputStream.
  </dl></dd>
</dl>
<a name="defaultWriteObject()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="defaultWriteObject"><b>defaultWriteObject</b></a>
<pre>
 public final void defaultWriteObject() throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Write the non-static and non-transient fields of the current class
 to this stream.  This may only be called from the writeObject method
 of the class being serialized. It will throw the NotActiveException
 if it is called otherwise.
<p>
</dl>
<a name="reset()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="reset"><b>reset</b></a>
<pre>
 public void reset() throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Reset will disregard the state of any objects already written
 to the stream.  The state is reset to be the same as a new
 ObjectOutputStream.  The current point in the stream is marked
 as reset so the corresponding ObjectInputStream will be reset
 at the same point.  Objects previously written to the stream
 will not be refered to as already being in the stream.  They
 will be written to the stream again.
<p>
</dl>
<a name="annotateClass(java.lang.Class)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="annotateClass"><b>annotateClass</b></a>
<pre>
 protected void annotateClass(<a href="java.lang.Class.html#_top_">Class</a> cl) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Subclasses may implement this method to allow class data to be stored
 in the stream. By default this method does nothing.
 The corresponding method in ObjectInputStream is resolveClass.
 This method is called exactly once for each unique class in the stream.
 The class name and signature will have already been written to the stream.
 This method may make free use of the ObjectOutputStream to save
 any representation of the class it deems suitable (for example,
 the bytes of the class file).  The resolveClass method in the corresponding
 subclass of ObjectInputStream must read and use any data or objects
 written by annotateClass.
 annotateClass is called only for normal classes.  Arrays are not normal classes.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> Any exception thrown by the underlying OutputStream.
  </dl></dd>
</dl>
<a name="replaceObject(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="replaceObject"><b>replaceObject</b></a>
<pre>
 protected <a href="java.lang.Object.html#_top_">Object</a> replaceObject(<a href="java.lang.Object.html#_top_">Object</a> obj) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> This method will allow trusted subclasses of ObjectOutputStream
 to substitute one object for another during
 serialization. Replacing objects is disabled until
 enableReplaceObject is called. The enableReplaceObject method
 checks that the stream requesting to do replacment can be
 trusted. Every reference to serializable objects is passed to
 replaceObject.  To insure that the private state of objects is
 not unintentionally exposed only trusted streams may use
 replaceObject. <p>
 When a subclass is replacing objects it must insure that either
 a complementary substitution must be made during
 deserialization or that the substituted object is compatible
 with every field where the reference will be stored.  Objects
 whose type is not a subclass of the type of the field or array
 element abort the serialization by raising an exception and the
 object is not be stored. <p>
 This method is called only once when each object is first encountered.
 All subsequent references to the object will be redirected to the
 new object. This method should return the object to be substituted or
 the original object. <P>
 Null can be returned as the object to be substituted, but may
 cause NullReferenceException in classes that contain references
 to the original object since they may be expecting an object
 instead of null.<p>
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> Any exception thrown by the underlying
 OutputStream.
  </dl></dd>
</dl>
<a name="enableReplaceObject(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="enableReplaceObject"><b>enableReplaceObject</b></a>
<pre>
 protected final boolean enableReplaceObject(boolean enable) throws <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
</pre>
<dl>
  <dd> Enable the stream to do replacement of objects in the stream.
 If the stream is a trusted class it is allowed to enable replacement.
 Trusted classes are those classes with a classLoader equals null. <p>
 When enabled the replaceObject method is called for every object
 being serialized.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.lang.SecurityException.html#_top_">SecurityException</a>
    <dd> The classloader of this stream object is non-null.
  </dl></dd>
</dl>
<a name="writeStreamHeader()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeStreamHeader"><b>writeStreamHeader</b></a>
<pre>
 protected void writeStreamHeader() throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> The writeStreamHeader method is provided so subclasses can
 append or prepend their own header to the stream.
 It writes the magic number and version to the stream.
<p>
</dl>
<a name="write(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="write"><b>write</b></a>
<pre>
 public void write(int data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a byte. This method will block until the byte is actually
 written.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> b - the byte
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> If an I/O error has occurred.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.io.OutputStream.html#write(int)">write</a> in class <a href="java.io.OutputStream.html#_top_">OutputStream</a>
  </dl></dd>
</dl>
<a name="write(byte[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="write"><b>write</b></a>
<pre>
 public void write(byte b[]) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes an array of bytes. This method will block until the bytes
 are actually written.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> b - the data to be written
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> If an I/O error has occurred.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.io.OutputStream.html#write(byte[])">write</a> in class <a href="java.io.OutputStream.html#_top_">OutputStream</a>
  </dl></dd>
</dl>
<a name="flush()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="flush"><b>flush</b></a>
<pre>
 public void flush() throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Flushes the stream. This will write any buffered
 output bytes and flush through to the underlying stream.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> If an I/O error has occurred.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.io.OutputStream.html#flush()">flush</a> in class <a href="java.io.OutputStream.html#_top_">OutputStream</a>
  </dl></dd>
</dl>
<a name="drain()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="drain"><b>drain</b></a>
<pre>
 protected void drain() throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Drain any buffered data in ObjectOutputStream.  Similar to flush
 but does not propagate the flush to the underlaying stream.
<p>
</dl>
<a name="close()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="close"><b>close</b></a>
<pre>
 public void close() throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Closes the stream. This method must be called
 to release any resources associated with the
 stream.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> If an I/O error has occurred.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.io.OutputStream.html#close()">close</a> in class <a href="java.io.OutputStream.html#_top_">OutputStream</a>
  </dl></dd>
</dl>
<a name="writeBoolean(boolean)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeBoolean"><b>writeBoolean</b></a>
<pre>
 public void writeBoolean(boolean data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a boolean.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> data - the boolean to be written
  </dl></dd>
</dl>
<a name="write(byte[], int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="write"><b>write</b></a>
<pre>
 public void write(byte b[],
                   int off,
                   int len) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a sub array of bytes.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> b - the data to be written
    <dd> off - the start offset in the data
    <dd> len - the number of bytes that are written
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> If an I/O error has occurred.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.io.OutputStream.html#write(byte[], int, int)">write</a> in class <a href="java.io.OutputStream.html#_top_">OutputStream</a>
  </dl></dd>
</dl>
<a name="writeByte(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeByte"><b>writeByte</b></a>
<pre>
 public void writeByte(int data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes an 8 bit byte.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> data - the byte value to be written
  </dl></dd>
</dl>
<a name="writeShort(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeShort"><b>writeShort</b></a>
<pre>
 public void writeShort(int data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a 16 bit short.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> data - the short value to be written
  </dl></dd>
</dl>
<a name="writeChar(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeChar"><b>writeChar</b></a>
<pre>
 public void writeChar(int data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a 16 bit char.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> data - the char value to be written
  </dl></dd>
</dl>
<a name="writeInt(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeInt"><b>writeInt</b></a>
<pre>
 public void writeInt(int data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a 32 bit int.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> data - the integer value to be written
  </dl></dd>
</dl>
<a name="writeLong(long)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeLong"><b>writeLong</b></a>
<pre>
 public void writeLong(long data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a 64 bit long.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> data - the long value to be written
  </dl></dd>
</dl>
<a name="writeFloat(float)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeFloat"><b>writeFloat</b></a>
<pre>
 public void writeFloat(float data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a 32 bit float.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> data - the float value to be written
  </dl></dd>
</dl>
<a name="writeDouble(double)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeDouble"><b>writeDouble</b></a>
<pre>
 public void writeDouble(double data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a 64 bit double.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> data - the double value to be written
  </dl></dd>
</dl>
<a name="writeBytes(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeBytes"><b>writeBytes</b></a>
<pre>
 public void writeBytes(<a href="java.lang.String.html#_top_">String</a> data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a String as a sequence of bytes.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the String of bytes to be written
  </dl></dd>
</dl>
<a name="writeChars(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeChars"><b>writeChars</b></a>
<pre>
 public void writeChars(<a href="java.lang.String.html#_top_">String</a> data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a String as a sequence of chars.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the String of chars to be written
  </dl></dd>
</dl>
<a name="writeUTF(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="writeUTF"><b>writeUTF</b></a>
<pre>
 public void writeUTF(<a href="java.lang.String.html#_top_">String</a> data) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a String in UTF format.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> str - the String in UTF format
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.io.html">This Package</a>  <a href="java.io.ObjectInputStream.html#_top_">Previous</a>  <a href="java.io.ObjectStreamClass.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
