org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator
Class Obfuscator

java.lang.Object
  extended by org.apache.myfaces.buildtools.maven2.plugin.javascript.uixtools.FileProcessor
      extended by org.apache.myfaces.buildtools.maven2.plugin.javascript.obfuscator.Obfuscator

public class Obfuscator
extends FileProcessor


Field Summary
 
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, OutputStream out)
           
protected  void processFile(File in, File out)
          Called to process a single file.
 
Methods inherited from class org.apache.myfaces.buildtools.maven2.plugin.javascript.uixtools.FileProcessor
getExtensionFilter, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Obfuscator

public Obfuscator(boolean obfuscate,
                  boolean stripComments,
                  boolean stripWhitespaces,
                  boolean stripNewlines,
                  boolean stripSpecialKeywords,
                  boolean replaceCharLiterals,
                  ObfuscatorConfig config)
           throws ConfigException
Throws:
ConfigException
Method Detail

process

public void process(InputSource in,
                    OutputStream out)
             throws ParseException
Throws:
ParseException

processFile

protected void processFile(File in,
                           File out)
                    throws 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:
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-2013 The Apache Software Foundation. All Rights Reserved.