public class HashChunkOutputStream
extends java.io.OutputStream
| Constructor and Description |
|---|
HashChunkOutputStream(java.io.OutputStream next) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream output.
|
long |
getDigest()
Returns the CRC value.
|
void |
write(byte[] bufferWrite,
int offsetWrite,
int lengthWrite)
Writes a buffer to the underlying stream.
|
void |
write(int data) |
public long getDigest()
public void write(int data)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] bufferWrite,
int offsetWrite,
int lengthWrite)
throws java.io.IOException
write in class java.io.OutputStreambuffer - the byte array to write.offset - the offset into the byte array.length - the number of bytes to write.java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException