Package com.elasticinbox.core.blob.compression

Examples of com.elasticinbox.core.blob.compression.DeflateCompressionHandler


  {
    this.keyspace = keyspace;
   
    // Create BlobStorage instance with AES encryption and Deflate compression
    CompressionHandler compressionHandler =
        Configurator.isBlobStoreCompressionEnabled() ? new DeflateCompressionHandler() : null;
    EncryptionHandler encryptionHandler =
        Configurator.isBlobStoreEncryptionEnabled() ? new AESEncryptionHandler() : null;

    this.blobStorage = new BlobStorageMediator(compressionHandler, encryptionHandler);
  }
View Full Code Here


        .equals(DeflateCompressionHandler.COMPRESSION_TYPE_DEFLATE)) ||
        // TODO: deprecated suffix based compression detection
        // kept for backward compatibility with 0.3
        blobUri.getName().endsWith(BlobStoreConstants.COMPRESS_SUFFIX))
    {
      CompressionHandler ch = new DeflateCompressionHandler();
      return new BlobDataSource(uri, blobDS.getInputStream(), ch);
    } else {
      return blobDS;
    }
  }
View Full Code Here

TOP

Related Classes of com.elasticinbox.core.blob.compression.DeflateCompressionHandler

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.