Klasse FileStoreUtil
java.lang.Object
org.teamapps.universaldb.index.file.store.FileStoreUtil
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringbytesToHex(byte[] bytes) static StringbytesToHex2(byte[] bytes) static booleanstatic StringcreateFileHash(File file) static Filestatic FiledecryptFile(File file, String keyHash) static FiledecryptFile(File file, String keyHash, File outputFile) static StringencryptFile(File file, String hash, File encryptedFile) static booleanstatic longgetLengthOfStoreFile(String fileName) static Filestatic Filestatic StringgetPrimaryFolder(String hash) static StringgetSecondaryFolder(String hash) static StringgetStoreFileName(String hash, long length) static intgetVirtualPartition(String hash) static byte[]hexToBytes(String hex)
-
Konstruktordetails
-
FileStoreUtil
public FileStoreUtil()
-
-
Methodendetails
-
exists
-
checkFile
public static boolean checkFile(File basePath, String hash, long length, boolean fullCheck) throws Exception - Löst aus:
Exception
-
getPath
-
getPath
-
getVirtualPartition
-
getPrimaryFolder
-
getSecondaryFolder
-
getStoreFileName
-
getLengthOfStoreFile
-
createFileHash
- Löst aus:
Exception
-
createTempFile
- Löst aus:
IOException
-
encryptFile
- Löst aus:
Exception
-
decryptFile
- Löst aus:
Exception
-
decryptFile
- Löst aus:
Exception
-
bytesToHex
-
hexToBytes
-
bytesToHex2
-