CheckedOutputStreamNameCheckedOutputStreamSynopsis
DescriptionThe CheckOutputStream class represents an OutputStream with an associated checksum. In other words, a CheckedOutputStream wraps a regular output stream and computes a checksum value as data is written to the stream. The checksum can verify the integrity of the data. When you create a CheckedOutputStream, you must specify an object that implements the Checksum interface that computes the checksum. Class Summary
public class java.util.zip.CheckedOutputStream
extends java.io.FilterOutputStream {
// Constructors
public CheckedOutputStream(OutputStream out, Checksum cksum);
// Instance Methods
public Checksum getChecksum();
public void write(int b);
public void write(byte[] b, int off, int len);
}
ConstructorsCheckedOutputStreampublic CheckedOutputStream(OutputStream out, Checksum cksum)
Instance MethodsgetChecksumpublic Checksum getChecksum()
writepublic void write(int b) throws IOException
public void write(byte[] b, int off, int len) throws IOException
Inherited Methods
See AlsoChecksum, FilterOutputStream, IOException, OutputStream |
|