public class FileIndexHelper extends Object
| Constructor and Description |
|---|
FileIndexHelper(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
persistFileIndex(FileChannel indexChannel,
byte[] resourceKeyBytes,
byte[] dataPaths,
long dataLength,
long startIndex,
long endIndex) |
byte |
queryChunkIndex(FileChannel indexChannel) |
int |
queryResourceIndex(byte[] resourceKeyBytes) |
ResourceIndex |
queryResourceIndex(FileChannel indexChannel,
byte[] resourceKeyBytes) |
public FileIndexHelper(Context context)
public ResourceIndex queryResourceIndex(FileChannel indexChannel, byte[] resourceKeyBytes) throws IOException
IOExceptionpublic byte queryChunkIndex(FileChannel indexChannel) throws IOException
IOExceptionpublic void persistFileIndex(FileChannel indexChannel, byte[] resourceKeyBytes, byte[] dataPaths, long dataLength, long startIndex, long endIndex) throws IOException
IOExceptionpublic int queryResourceIndex(byte[] resourceKeyBytes)
Copyright © 2018. All rights reserved.