<!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>
  Interface java.io.DataOutput
</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.DataInput.html#_top_">Previous</a>  <a href="java.io.Externalizable.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Interface java.io.DataOutput
</h1>
<dl>
  <dt> public interface <b>DataOutput</b>
</dl>
The data output interface is implemented by streams that can 
 write primitive Java data types to an output stream in a 
 machine-independent manner.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.io.DataInput.html#_top_">DataInput</a>, <a href="java.io.DataOutputStream.html#_top_">DataOutputStream</a>
</dl>
<hr>
<a name="index"></a>
<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="#write(byte[])"><b>write</b></a>(byte[])
  <dd>  Writes <code>b.length</code> bytes from the specified byte array 
 to this output stream.
  <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 <code>len</code> bytes from the specified byte array 
 starting at offset <code>off</code> to this output stream.
  <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 the specified byte to this data output stream.
  <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 <code>boolean</code> value to this output stream.
  <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 value to this output stream.
  <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 to this output stream.
  <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 <code>char</code> value to this output stream.
  <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 to this output stream.
  <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 <code>double</code> value to this output stream.
  <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 <code>float</code> value to this output stream.
  <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 an <code>int</code> value to this output stream.
  <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 <code>long</code> value to this output stream.
  <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 value to this output 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 Unicode string by encoding it using modified UTF-8 format.
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<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 abstract void write(int b) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes the specified byte to this data output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> b - the byte to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void write(byte b[]) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes <code>b.length</code> bytes from the specified byte array 
 to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> b - the data.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void write(byte b[],
                            int off,
                            int len) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes <code>len</code> bytes from the specified byte array 
 starting at offset <code>off</code> to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> b - the data.
    <dd> off - the start offset in the data.
    <dd> len - the number of bytes to write.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeBoolean(boolean v) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a <code>boolean</code> value to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> v - the boolean to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeByte(int v) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes an 8-bit value to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> v - the byte value to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeShort(int v) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a 16-bit value to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> v - the <code>short</code> value to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeChar(int v) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a <code>char</code> value to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> v - the <code>char</code> value to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeInt(int v) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes an <code>int</code> value to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> v - the <code>int</code> value to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeLong(long v) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a <code>long</code> value to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> v - the <code>long</code> value to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeFloat(float v) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a <code>float</code> value to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> v - the <code>float</code> value to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeDouble(double v) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a <code>double</code> value to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> v - the <code>double</code> value to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeBytes(<a href="java.lang.String.html#_top_">String</a> s) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a string to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the string of bytes to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeChars(<a href="java.lang.String.html#_top_">String</a> s) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a string to this output stream.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the string value to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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 abstract void writeUTF(<a href="java.lang.String.html#_top_">String</a> str) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a Unicode string by encoding it using modified UTF-8 format.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> str - the string value to be written.
    <dt> <b>Throws:</b> <a href="java.io.IOException.html#_top_">IOException</a>
    <dd> if an I/O error occurs.
  </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.DataInput.html#_top_">Previous</a>  <a href="java.io.Externalizable.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
