<!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.util.zip.CheckedOutputStream
</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.util.zip.html">This Package</a>  <a href="java.util.zip.CheckedInputStream.html#_top_">Previous</a>  <a href="java.util.zip.Deflater.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.util.zip.CheckedOutputStream
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.io.OutputStream.html#_top_">java.io.OutputStream</a>
           |
           +----<a href="java.io.FilterOutputStream.html#_top_">java.io.FilterOutputStream</a>
                   |
                   +----java.util.zip.CheckedOutputStream
</pre>
<hr>
<dl>
  <dt> public class <b>CheckedOutputStream</b>
  <dt> extends <a href="java.io.FilterOutputStream.html#_top_">FilterOutputStream</a>
</dl>
An output stream that also maintains a checksum of the data being
 written. The checksum can then be used to verify the integrity of
 the output data.
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.util.zip.Checksum.html#_top_">Checksum</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="#CheckedOutputStream(java.io.OutputStream, java.util.zip.Checksum)"><b>CheckedOutputStream</b></a>(OutputStream, Checksum)
  <dd>  Creates an output stream with the specified Checksum.
</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="#getChecksum()"><b>getChecksum</b></a>()
  <dd>  Returns the Checksum for 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 an 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.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="CheckedOutputStream"></a>
<a name="CheckedOutputStream(java.io.OutputStream, java.util.zip.Checksum)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>CheckedOutputStream</b>
<pre>
 public CheckedOutputStream(<a href="java.io.OutputStream.html#_top_">OutputStream</a> out,
                            <a href="java.util.zip.Checksum.html#_top_">Checksum</a> cksum)
</pre>
<dl>
  <dd> Creates an output stream with the specified Checksum.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> out - the output stream
    <dd> cksum - the checksum
  </dl></dd>
</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 void write(int b) throws <a href="java.io.IOException.html#_top_">IOException</a>
</pre>
<dl>
  <dd> Writes a byte. Will block until the byte is actually written.
<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 has occurred
    <dt> <b>Overrides:</b>
    <dd> <a href="java.io.FilterOutputStream.html#write(int)">write</a> in class <a href="java.io.FilterOutputStream.html#_top_">FilterOutputStream</a>
  </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 an array of bytes. Will block until the bytes are
 actually written.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> buf - the data to be written
    <dd> off - the start offset of the data
    <dd> len - the number of bytes 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.FilterOutputStream.html#write(byte[], int, int)">write</a> in class <a href="java.io.FilterOutputStream.html#_top_">FilterOutputStream</a>
  </dl></dd>
</dl>
<a name="getChecksum()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getChecksum"><b>getChecksum</b></a>
<pre>
 public <a href="java.util.zip.Checksum.html#_top_">Checksum</a> getChecksum()
</pre>
<dl>
  <dd> Returns the Checksum for this output stream.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.zip.html">This Package</a>  <a href="java.util.zip.CheckedInputStream.html#_top_">Previous</a>  <a href="java.util.zip.Deflater.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
