CheckedOutputStreampublic class CheckedOutputStream extends FilterOutputStream
Fields Summary |
---|
private Checksum | cksum |
Constructors Summary |
---|
public CheckedOutputStream(OutputStream out, Checksum cksum)
super(out);
this.cksum = cksum;
|
Methods Summary |
---|
public Checksum | getChecksum()
return cksum;
| public void | write(int b)
out.write(b);
cksum.update(b);
| public void | write(byte[] b)
out.write(b, 0, b.length);
cksum.update(b, 0, b.length);
| public void | write(byte[] b, int off, int len)
out.write(b, off, len);
cksum.update(b, off, len);
|
|