fnug.resource
Interface Compressor

All Known Implementing Classes:
CssCompressor, JsCompressor

public interface Compressor

Interface for compressors of bytes, javascript or css.

Author:
Martin Algesten

Method Summary
 byte[] compress(byte[] input)
          Compresses the given input of bytes.
 String name()
          Returns what type of compressor this is.
 

Method Detail

compress

byte[] compress(byte[] input)
Compresses the given input of bytes.

Parameters:
input - bytes to compress
Returns:
the compressed bytes.

name

String name()
Returns what type of compressor this is. "javascript" or "css".



Copyright © 2012. All Rights Reserved.