public class Crc32AppendingFileWriter extends Object implements FileWriter
| Modifier and Type | Field and Description |
|---|---|
static int |
CRC_LEN |
| Constructor and Description |
|---|
Crc32AppendingFileWriter(FileWriter out,
int roundUp) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocateByteBuffer(int size)
Allocates a byte buffer.
|
void |
close() |
int |
write(ByteBuffer buf) |
public static final int CRC_LEN
public Crc32AppendingFileWriter(@NonNull
FileWriter out,
int roundUp)
public int write(ByteBuffer buf) 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 © 2017. All rights reserved.