public class CRCOutputStream extends FilterOutputStream
| Modifier and Type | Field and Description |
|---|---|
protected CRC |
crc |
out| Constructor and Description |
|---|
CRCOutputStream(OutputStream out,
CRC crc)
Create a new CRCOutputStream using the selected CRC generator
|
| Modifier and Type | Method and Description |
|---|---|
CRC |
getCRC()
Get the existing crc
|
void |
setCRC(CRC crc)
Set a new CRC generator from the current byte onwards.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeCRC()
Write the CRC digest in the current position of the OutputStream.
|
close, flushprotected CRC crc
public CRCOutputStream(OutputStream out, CRC crc)
out - crc - public void setCRC(CRC crc)
crc - public CRC getCRC()
public void writeCRC()
throws IOException
IOExceptionpublic void write(byte[] b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionCopyright © 2018 DataWeb Research. All rights reserved.