public interface FileReader
| Modifier and Type | Field and Description |
|---|---|
static int |
EOF |
| Modifier and Type | Method and Description |
|---|---|
String |
getPath()
Get the file path.
|
int |
readFile(ByteBufferCollector buf,
String fileName,
long offset,
long maxCount)
Read file into buf starts from offset at most maxCount.
|
static final int EOF
String getPath()
int readFile(ByteBufferCollector buf, String fileName, long offset, long maxCount) throws IOException, RetryAgainException
buf - read bytes into this buffileName - file nameoffset - the offset of filemaxCount - max read bytesIOException - if some I/O error occursRetryAgainException - if it's not allowed to read partly
or it's allowed but throughput is throttled to 0, try again.Copyright © 2024. All rights reserved.