processFile(Entry) or processDir(Entry, ArrayList) can be overridden, or both. The entries provided to
the callbacks have the original file, the output directory, and the output file. If setFlattenOutput(boolean) is
false, the output will match the directory structure of the input.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Comparator | |
| pack-priv Comparator | |
| pack-priv boolean | |
| pack-priv FilenameFilter | |
| pack-priv Array | |
| pack-priv ArrayList | |
| pack-priv String | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public FileProcessor | |
| public FileProcessor | |
| protected void | addProcessedFile(FileProcessor.
This method should be called by |
| public ArrayList | |
| public ArrayList | Returns: the processed files added withaddProcessedFile(Entry).May be null if there is no output from processing the files. outputRoot)Processes the specified input file or directory. |
| public ArrayList | Returns: the processed files added withaddProcessedFile(Entry).May be null if there is no output from processing the files. outputRoot)Processes the specified input files. |
| private void | process(File[] files, File outputRoot, File outputDir, LinkedHashMap<File, ArrayList<FileProcessor.
|
| protected void | processDir(FileProcessor.
Called for each input directory. |
| protected void | |
| public FileProcessor | |
| public FileProcessor | |
| public FileProcessor | |
| public FileProcessor | setOutputSuffix(String outputSuffix)
Sets the suffix for output files, replacing the extension of the input file. |
| public FileProcessor |
| comparator | back to summary |
|---|---|
| pack-priv Comparator<File> comparator | |
| entryComparator | back to summary |
|---|---|
| pack-priv Comparator<FileProcessor. | |
| flattenOutput | back to summary |
|---|---|
| pack-priv boolean flattenOutput | |
| inputFilter | back to summary |
|---|---|
| pack-priv FilenameFilter inputFilter | |
| inputRegex | back to summary |
|---|---|
| pack-priv Array<Pattern> inputRegex | |
| outputFiles | back to summary |
|---|---|
| pack-priv ArrayList<FileProcessor. | |
| outputSuffix | back to summary |
|---|---|
| pack-priv String outputSuffix | |
| recursive | back to summary |
|---|---|
| pack-priv boolean recursive | |
| FileProcessor | back to summary |
|---|---|
| public FileProcessor() | |
| FileProcessor | back to summary |
|---|---|
| public FileProcessor(FileProcessor processor) Copy constructor. | |
| addInputRegex | back to summary |
|---|---|
| public FileProcessor addInputRegex(String... regexes) | |
| addInputSuffix | back to summary |
|---|---|
| public FileProcessor addInputSuffix(String... suffixes) Adds a case insensitive suffix for matching input files. | |
| addProcessedFile | back to summary |
|---|---|
| protected void addProcessedFile(FileProcessor. This method should be called by | |
| process | back to summary |
|---|---|
public ArrayList
| |
| process | back to summary |
|---|---|
| public ArrayList Processes the specified input file or directory.
| |
| process | back to summary |
|---|---|
| public ArrayList Processes the specified input files.
| |
| process | back to summary |
|---|---|
| private void process(File[] files, File outputRoot, File outputDir, LinkedHashMap<File, ArrayList<FileProcessor. | |
| processDir | back to summary |
|---|---|
| protected void processDir(FileProcessor. Called for each input directory. The files will be | |
| processFile | back to summary |
|---|---|
| protected void processFile(FileProcessor. Called with each input file. | |
| setComparator | back to summary |
|---|---|
| public FileProcessor setComparator(Comparator<File> comparator) Sets the comparator for | |
| setFlattenOutput | back to summary |
|---|---|
| public FileProcessor setFlattenOutput(boolean flattenOutput) | |
| setInputFilter | back to summary |
|---|---|
| public FileProcessor setInputFilter(FilenameFilter inputFilter) | |
| setOutputSuffix | back to summary |
|---|---|
| public FileProcessor setOutputSuffix(String outputSuffix) Sets the suffix for output files, replacing the extension of the input file. | |
| setRecursive | back to summary |
|---|---|
| public FileProcessor setRecursive(boolean recursive) Default is true. | |
| Modifier and Type | Field and Description |
|---|---|
| public int | |
| public File | |
| public File | outputDir
May be null. |
| public File |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| depth | back to summary |
|---|---|
| public int depth | |
| inputFile | back to summary |
|---|---|
| public File inputFile | |
| outputDir | back to summary |
|---|---|
| public File outputDir May be null. | |
| outputFile | back to summary |
|---|---|
| public File outputFile | |
| Entry | back to summary |
|---|---|
| public Entry() | |
| Entry | back to summary |
|---|---|
| public Entry(File inputFile, File outputFile) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |