Package org.exoplatform.portal.resource.compressor

Examples of org.exoplatform.portal.resource.compressor.ResourceCompressorPlugin.compress()


    @Override
    public final void compress(Reader input, Writer output, ResourceType resourceType) throws ResourceCompressorException,
            IOException {
        ResourceCompressorPlugin plugin = getHighestPriorityCompressorPlugin(resourceType);
        if (plugin != null) {
            plugin.compress(input, output);
        } else {
            throw new ResourceCompressorException("There is no compressor for " + resourceType + " type");
        }
    }
View Full Code Here


      throws ResourceCompressorException, IOException
   {
      ResourceCompressorPlugin plugin = getHighestPriorityCompressorPlugin(resourceType);
      if (plugin != null)
      {
         plugin.compress(input, output);
      }
      else
      {
         throw new ResourceCompressorException("There is no compressor for " + resourceType + " type");
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.