public class Reducer extends FileProcessor
isVerbose| Constructor and Description |
|---|
Reducer() |
Reducer(boolean whitespaceComments,
boolean localVars)
creates a new Reducer.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
process(BufferedReader in,
PrintWriter out)
reduces a JavaScript file.
|
protected void |
processFile(File in,
File out)
Called to process a single file.
|
getExtensionFilter, processpublic Reducer(boolean whitespaceComments,
boolean localVars)
whitespaceComments - if true removes comments and extra whitespacelocalVars - if true renames local variable names to shorter ones.public Reducer()
public void process(BufferedReader in, PrintWriter out) throws IOException, InterruptedException
in - the source to read fromout - the source to write the reduced form toIOExceptionInterruptedExceptionprotected void processFile(File in, File out) throws IOException, InterruptedException
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.IOExceptionInterruptedExceptionFileProcessor.processFile(File, File)public static void main(String[] args)
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.