Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`FileLineFilter(String[] stringToFilter)`

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`

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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012. All Rights Reserved.