public class Obfuscator extends FileProcessor
isVerbose| Constructor and Description |
|---|
Obfuscator(boolean obfuscate,
boolean stripComments,
boolean stripWhitespaces,
boolean stripNewlines,
boolean stripSpecialKeywords,
boolean replaceCharLiterals,
ObfuscatorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(InputSource in,
OutputStream out) |
protected void |
processFile(File in,
File out)
Called to process a single file.
|
getExtensionFilter, processpublic Obfuscator(boolean obfuscate,
boolean stripComments,
boolean stripWhitespaces,
boolean stripNewlines,
boolean stripSpecialKeywords,
boolean replaceCharLiterals,
ObfuscatorConfig config)
throws ConfigException
ConfigExceptionpublic void process(InputSource in, OutputStream out) throws ParseException
ParseExceptionprotected void processFile(File in, File out) throws Exception
FileProcessorprocessFile in class FileProcessorin - 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.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-2012 Apache Software Foundation. All Rights Reserved.