chunker = new FixedChunker(512 * 1024, "SHA1");
}
private void initMultiChunker(RepoTO repoTO) throws ConfigException {
MultiChunkerTO multiChunkerTO = repoTO.getMultiChunker();
if (multiChunkerTO == null) {
throw new ConfigException("No multichunker in repository config.");
}
multiChunker = MultiChunker.getInstance(multiChunkerTO.getType());
if (multiChunker == null) {
throw new ConfigException("Invalid multichunk type or settings: " + multiChunkerTO.getType());
}
multiChunker.init(multiChunkerTO.getSettings());
}