/** * Creates a default file configuration * * @return the file configuration */ public static IFileConfiguration createDefault() { return new FileConfiguration(H2HConstants.DEFAULT_MAX_FILE_SIZE, H2HConstants.DEFAULT_MAX_NUM_OF_VERSIONS, H2HConstants.DEFAULT_MAX_SIZE_OF_ALL_VERSIONS, H2HConstants.DEFAULT_CHUNK_SIZE); }
/** * Create a file configuration with the given parameters * * @param maxFileSize the maximum file size (in bytes) * @param maxNumOfVersions the allowed number of versions * @param maxSizeAllVersions the maximum file size when summing up all versions (in bytes) * @param chunkSize the size of a chunk (in bytes) * @return the created configuration */ public static IFileConfiguration createCustom(BigInteger maxFileSize, int maxNumOfVersions, BigInteger maxSizeAllVersions, int chunkSize) { return new FileConfiguration(maxFileSize, maxNumOfVersions, maxSizeAllVersions, chunkSize); }