public class Crc32VerifyingFileReader extends Object implements FileReader
| Modifier and Type | Class and Description |
|---|---|
static class |
Crc32VerifyingFileReader.IOCrcMismatchException |
static class |
Crc32VerifyingFileReader.IOPaddingException |
| Modifier and Type | Field and Description |
|---|---|
static int |
CRC_LEN |
| Constructor and Description |
|---|
Crc32VerifyingFileReader(FileReader in,
long len,
int roundUp) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocateByteBuffer(int size)
Allocates a byte buffer.
|
void |
close() |
int |
read(ByteBuffer data) |
public static final int CRC_LEN
public Crc32VerifyingFileReader(@NonNull
FileReader in,
long len,
int roundUp)
public int read(ByteBuffer data) throws IOException
read in interface FileReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic ByteBuffer allocateByteBuffer(int size)
FileReaderallocateByteBuffer in interface FileReadersize - The size of the buffer.Copyright © 2016. All rights reserved.