Checksum
| Modifier and Type | Field and Description |
|---|---|
| private Checksum |
| Access | Constructor and Description |
|---|---|
| public | CheckedOutputStream(OutputStream
the output stream out, Checksum the checksum cksum)Creates an output stream with the specified Checksum. |
| Modifier and Type | Method and Description |
|---|---|
| public Checksum | |
| public void | |
| public void | write(byte[]
the data to be written b, int the start offset of the data off, int the number of bytes to be written len)Overrides java. Writes an array of bytes. |
| cksum | back to summary |
|---|---|
| private Checksum cksum | |
| CheckedOutputStream | back to summary |
|---|---|
| public CheckedOutputStream(OutputStream out, Checksum cksum) Creates an output stream with the specified Checksum.
| |
| getChecksum | back to summary |
|---|---|
| public Checksum getChecksum() Returns the Checksum for this output stream.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Overrides java. Writes a byte. Will block until the byte is actually written.
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Writes an array of bytes. Will block until the bytes are actually written.
| |