| java.lang.Object java.io.OutputStream java.io.FilterOutputStream java.util.zip.CheckedOutputStream
CheckedOutputStream | public class CheckedOutputStream extends FilterOutputStream (Code) | | 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.
See Also: Checksum version: 1.15, 02/02/00 author: David Connelly |
Method Summary | |
public Checksum | getChecksum() Returns the Checksum for this output stream. | public void | write(int b) Writes a byte. | public void | write(byte[] b, int off, int len) Writes an array of bytes. |
CheckedOutputStream | public CheckedOutputStream(OutputStream out, Checksum cksum)(Code) | | Creates an output stream with the specified Checksum.
Parameters: out - the output stream Parameters: cksum - the checksum |
getChecksum | public Checksum getChecksum()(Code) | | Returns the Checksum for this output stream.
the Checksum |
write | public void write(int b) throws IOException(Code) | | Writes a byte. Will block until the byte is actually written.
Parameters: b - the byte to be written exception: IOException - if an I/O error has occurred |
write | public void write(byte[] b, int off, int len) throws IOException(Code) | | Writes an array of bytes. Will block until the bytes are
actually written.
Parameters: b - the data to be written Parameters: off - the start offset of the data Parameters: len - the number of bytes to be written exception: IOException - if an I/O error has occurred |
|
|