com.gisgraphy.helper
Class FileLineFilter
java.lang.Object
com.gisgraphy.helper.FileLineFilter
public class FileLineFilter
- extends Object
Create a filter that take a file and remove all the line that contain some
specific string
- Author:
- David Masclet
Method Summary |
void |
filter(File originalFile,
File destFile)
All the lines that contains the word or sentence of the filter will be
deleted, the result file will be written in the destFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileLineFilter
public FileLineFilter(String[] stringToFilter)
- Parameters:
stringToFilter
- All the lines that contains the word or sentence will be
filtered
filter
public void filter(File originalFile,
File destFile)
- All the lines that contains the word or sentence of the filter will be
deleted, the result file will be written in the destFile
- Parameters:
originalFile
- The file to filterdestFile
- The filtered file
note : if the destination file does not exists, it will be
created.
Copyright © 2012. All Rights Reserved.