public class Crc32Writer extends Object implements FileWriter
| Modifier and Type | Field and Description |
|---|---|
static int |
CRC_LEN |
| Constructor and Description |
|---|
Crc32Writer() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocateByteBuffer(int size)
Allocates a byte buffer.
|
void |
close() |
int |
getCrc32() |
int |
write(ByteBuffer data) |
public static final int CRC_LEN
public int getCrc32()
public int write(ByteBuffer data) throws IOException
write in interface FileWriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic ByteBuffer allocateByteBuffer(int size)
FileWriterallocateByteBuffer in interface FileWritersize - The size of the buffer.Copyright © 2016. All rights reserved.