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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FileLineFilter(String[] stringToFilter)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`

- - ### Constructor Detail

    - #### FileLineFilter

          public FileLineFilter(String[] stringToFilter)

      Parameters:
        `stringToFilter` - All the lines that contains the word or sentence will be filtered

  - ### Method Detail

    - #### 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 filter
        `destFile` - The filtered file
        note : if the destination file does not exists, it will be created.

Copyright © 2015. All rights reserved.