CheckedDataOutputpublic class CheckedDataOutput extends Object
Fields Summary |
---|
private Checksum | cksum | private DataOutput | out |
Constructors Summary |
---|
public CheckedDataOutput(DataOutput out, Checksum cksum)
this.cksum = cksum;
this.out = out;
|
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);
|
|