public class CheckedOutputStream extends FilterOutputStream
Checksumout| Constructor and Description |
|---|
CheckedOutputStream(OutputStream out,
Checksum cksum)
Creates a new CheckInputStream on top of the supplied OutputStream using
the supplied Checksum.
|
| Modifier and Type | Method and Description |
|---|---|
Checksum |
getChecksum()
Returns the Checksum object used.
|
void |
write(byte[] buf,
int off,
int len)
Writes the byte array to the OutputStream and updates the Checksum.
|
void |
write(int bval)
Writes one byte to the OutputStream and updates the Checksum.
|
close, flush, writepublic CheckedOutputStream(OutputStream out, Checksum cksum)
public Checksum getChecksum()
getChecksum.getValue().public void write(int bval)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] buf,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionCopyright © 2009–2017. All rights reserved.