|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.mojo.javascript.compress.JSCompressorProxy
public class JSCompressorProxy
| Field Summary |
|---|
| Fields inherited from interface org.codehaus.mojo.javascript.compress.JSCompressor |
|---|
JAVASCRIPT_1_1, JAVASCRIPT_1_2, JAVASCRIPT_1_3, MAX, NONE |
| Constructor Summary | |
|---|---|
JSCompressorProxy(java.lang.Object compressor)
|
|
| Method Summary | |
|---|---|
void |
compress(java.io.File input,
java.io.File output,
int level,
int language)
Compress the input script file into the output file (may be same). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSCompressorProxy(java.lang.Object compressor)
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException| Method Detail |
|---|
public void compress(java.io.File input,
java.io.File output,
int level,
int language)
throws CompressionException
JSCompressor
compress in interface JSCompressorinput - source to get compressedoutput - compressed scriptlevel - optimization level from 0 to 9. May have various
signification dependending on the compressor, from beeing ignored to some
fine tweaking the output.language - version of javascript to be used ("130" for JS 1.3), as
defined by Mozilla Rhino engine
CompressionException - any error during compression
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||