org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator
Class Obfuscator
java.lang.Object
org.apache.myfaces.buildtools.maven2.plugin.javascript.uixtools.FileProcessor
org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.Obfuscator
public class Obfuscator
- extends FileProcessor
Fields inherited from class org.apache.myfaces.buildtools.maven2.plugin.javascript.uixtools.FileProcessor |
isVerbose |
Constructor Summary |
Obfuscator(boolean obfuscate,
boolean stripComments,
boolean stripWhitespaces,
boolean stripNewlines,
boolean stripSpecialKeywords,
boolean replaceCharLiterals,
ObfuscatorConfig config)
|
Method Summary |
void |
process(InputSource in,
java.io.OutputStream out)
|
protected void |
processFile(java.io.File in,
java.io.File out)
Called to process a single file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Obfuscator
public Obfuscator(boolean obfuscate,
boolean stripComments,
boolean stripWhitespaces,
boolean stripNewlines,
boolean stripSpecialKeywords,
boolean replaceCharLiterals,
ObfuscatorConfig config)
throws ConfigException
- Throws:
ConfigException
process
public void process(InputSource in,
java.io.OutputStream out)
throws ParseException
- Throws:
ParseException
processFile
protected void processFile(java.io.File in,
java.io.File out)
throws java.lang.Exception
- Description copied from class:
FileProcessor
- Called to process a single file.
- Specified by:
processFile
in class FileProcessor
- Parameters:
in
- the input file. This is never a directory.out
- the output file. If this file exists and overwriting is not
permitted, then this method is never called.
- Throws:
java.lang.Exception
- if this class is set to fail fast then any
exception thrown will cause all execution to halt. If this class does not
fail fast, then the exception will be reported and execution will
continue with the next file.
Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.