Save This Page
Home » openjdk-7 » java » util » zip » [javadoc | source]
java.util.zip
public class: CheckedOutputStream [javadoc | source]
java.lang.Object
   java.io.OutputStream
      java.io.FilterOutputStream
         java.util.zip.CheckedOutputStream

All Implemented Interfaces:
    Flushable, Closeable

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.
Fields inherited from java.io.FilterOutputStream:
out
Constructor:
 public CheckedOutputStream(OutputStream out,
    Checksum cksum) 
    Creates an output stream with the specified Checksum.
    Parameters:
    out - the output stream
    cksum - the checksum
Method from java.util.zip.CheckedOutputStream Summary:
getChecksum,   write,   write
Methods from java.io.FilterOutputStream:
close,   flush,   write,   write,   write
Methods from java.io.OutputStream:
close,   flush,   write,   write,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.zip.CheckedOutputStream Detail:
 public Checksum getChecksum() 
    Returns the Checksum for this output stream.
 public  void write(int b) throws IOException 
    Writes a byte. Will block until the byte is actually written.
 public  void write(byte[] b,
    int off,
    int len) throws IOException 
    Writes an array of bytes. Will block until the bytes are actually written.