Klasse FileStoreUtil

java.lang.Object
org.teamapps.universaldb.index.file.store.FileStoreUtil

public class FileStoreUtil extends Object
  • Konstruktordetails

    • FileStoreUtil

      public FileStoreUtil()
  • Methodendetails

    • exists

      public static boolean exists(File basePath, String hash, long length)
    • checkFile

      public static boolean checkFile(File basePath, String hash, long length, boolean fullCheck) throws Exception
      Löst aus:
      Exception
    • getPath

      public static File getPath(File basePath, String hash, long length)
    • getPath

      public static File getPath(File basePath, String hash, long length, boolean create)
    • getVirtualPartition

      public static int getVirtualPartition(String hash)
    • getPrimaryFolder

      public static String getPrimaryFolder(String hash)
    • getSecondaryFolder

      public static String getSecondaryFolder(String hash)
    • getStoreFileName

      public static String getStoreFileName(String hash, long length)
    • getLengthOfStoreFile

      public static long getLengthOfStoreFile(String fileName)
    • createFileHash

      public static String createFileHash(File file) throws Exception
      Löst aus:
      Exception
    • createTempFile

      public static File createTempFile() throws IOException
      Löst aus:
      IOException
    • encryptFile

      public static String encryptFile(File file, String hash, File encryptedFile) throws Exception
      Löst aus:
      Exception
    • decryptFile

      public static File decryptFile(File file, String keyHash) throws Exception
      Löst aus:
      Exception
    • decryptFile

      public static File decryptFile(File file, String keyHash, File outputFile) throws Exception
      Löst aus:
      Exception
    • bytesToHex

      public static String bytesToHex(byte[] bytes)
    • hexToBytes

      public static byte[] hexToBytes(String hex)
    • bytesToHex2

      public static String bytesToHex2(byte[] bytes)