|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfnug.resource.JsCompressor
public class JsCompressor
Implementation of Compressor
for javascript. Uses a wrapped Google Closure Compiler.
Constructor Summary | |
---|---|
JsCompressor(String... args)
Constructs potentially sending configuration options to the wrapped google closure compiler. |
Method Summary | |
---|---|
byte[] |
compress(byte[] input)
Compresses the given input of bytes. |
String |
name()
Returns what type of compressor this is. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsCompressor(String... args)
args
- arguments to send.Method Detail |
---|
public String name()
name
in interface Compressor
public byte[] compress(byte[] input)
compress
in interface Compressor
input
- bytes to compress
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |