Package org.syncany.chunk

Examples of org.syncany.chunk.NoTransformer


    multiChunker.init(multiChunkerTO.getSettings());
  }

  private void initTransformers(RepoTO repoTO) throws Exception {
    if (repoTO.getTransformers() == null || repoTO.getTransformers().size() == 0) {
      transformer = new NoTransformer();
    }
    else {
      ArrayList<TransformerTO> transformerTOs = new ArrayList<TransformerTO>(repoTO.getTransformers());
      Transformer lastTransformer = null;
View Full Code Here


    List<File> files = TestFileUtil.createRandomFilesInDirectory(tempDir, fileSizeSmall, fileAmountSizeSmall);
    files.addAll(TestFileUtil.createRandomFilesInDirectory(tempDir, fileSizeBig, fileAmountSizeBig));

    logger.log(Level.INFO, "- In "+tempDir+" ...");     

    Set<MultiChunk> resultMultiChunks = chunkFileIntoMultiChunks(tempDir, files, chunker, multiChunker, new NoTransformer());

    long totalFilesSize = (fileSizeBig * fileAmountSizeBig) + (fileSizeSmall * fileAmountSizeSmall);
    assertEquals(totalFilesSize / minMultiChunkSize / 1024, resultMultiChunks.size());
   
    TestFileUtil.deleteDirectory(tempDir);
View Full Code Here

    cipherSpecs.add(CipherSpecs.getCipherSpec(1));
    cipherSpecs.add(CipherSpecs.getCipherSpec(2));

    List<Transformer> transformerChains = new LinkedList<Transformer>();

    transformerChains.add(new NoTransformer());
    transformerChains.add(new GzipTransformer());
    transformerChains.add(new CipherTransformer(cipherSpecs, masterKey));
    transformerChains.add(new GzipTransformer(new CipherTransformer(cipherSpecs, masterKey)));

    for (MultiChunker multiChunker : multiChunkers) {
View Full Code Here

TOP

Related Classes of org.syncany.chunk.NoTransformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.