public class AssetsFileReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX_ASSETS |
Constructor and Description |
---|
AssetsFileReader() |
Modifier and Type | Method and Description |
---|---|
void |
closeFile() |
long |
getCurrentPosition() |
long |
getFileSize() |
int |
open(java.lang.String assetFilePath) |
int |
read(java.nio.ByteBuffer readByteBuffer)
Read file content to ByteBuffer
|
long |
seek(long pos) |
public static final java.lang.String PREFIX_ASSETS
public int open(java.lang.String assetFilePath)
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()