public class FileRcFileDataSource extends Object implements RcFileDataSource
| Constructor and Description |
|---|
FileRcFileDataSource(File path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RcFileDataSourceId |
getId() |
long |
getReadBytes() |
long |
getReadTimeNanos() |
long |
getSize() |
void |
readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength) |
String |
toString() |
public FileRcFileDataSource(File path) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getReadBytes()
getReadBytes in interface RcFileDataSourcepublic long getReadTimeNanos()
getReadTimeNanos in interface RcFileDataSourcepublic long getSize()
getSize in interface RcFileDataSourcepublic void readFully(long position,
byte[] buffer,
int bufferOffset,
int bufferLength)
throws IOException
readFully in interface RcFileDataSourceIOExceptionpublic RcFileDataSourceId getId()
getId in interface RcFileDataSourceCopyright © 2012–2022. All rights reserved.