public class ContentFileReader
extends java.lang.Object
Constructor and Description |
---|
ContentFileReader() |
Modifier and Type | Method and Description |
---|---|
void |
closeFile() |
long |
getCurrentPosition() |
long |
getFileSize() |
int |
open(java.lang.String url) |
int |
read(java.nio.ByteBuffer readByteBuffer)
Read file content to ByteBuffer
|
long |
seek(long pos) |
public int open(java.lang.String url)
public long getFileSize()
public long seek(long pos)
public void closeFile()
public int read(java.nio.ByteBuffer readByteBuffer)
readByteBuffer
- The buffer into which bytes are to be transferredpublic long getCurrentPosition()