public class FileDataHelper extends Object
| Constructor and Description |
|---|
FileDataHelper(Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
doEncryptAndPersistData(File original,
String dataStorageDirectoryPath,
byte chunkIndex,
long chunkSize,
PersistDataResult result) |
PersistDataResult |
encryptAndPersistData(File original,
int index,
byte chunkIndex) |
byte[] |
encryptData(byte[] data) |
int |
persistData(FileChannel dataStorageChannel,
byte type,
byte[] fileNameBytes,
byte[] data) |
public FileDataHelper(Context context)
public PersistDataResult encryptAndPersistData(File original, int index, byte chunkIndex) throws IOException
IOExceptionpublic void doEncryptAndPersistData(File original, String dataStorageDirectoryPath, byte chunkIndex, long chunkSize, PersistDataResult result) throws IOException
IOExceptionpublic byte[] encryptData(byte[] data)
public int persistData(FileChannel dataStorageChannel, byte type, byte[] fileNameBytes, byte[] data) throws IOException
IOExceptionCopyright © 2018. All rights reserved.