Statistics
| Revision:

root / branches / Mobile_Compatible_Hito_1 / libFMap / src-file / org / gvsig / data / datastores / vectorial / file / shp / utils / MyFileFilter.java @ 21606

History | View | Annotate | Download (514 Bytes)

1
package org.gvsig.data.datastores.vectorial.file.shp.utils;
2

    
3
import java.io.File;
4
import java.io.FileFilter;
5

    
6
public class MyFileFilter implements FileFilter {
7
        private String shpPath;
8
        public MyFileFilter(String shpPath){
9
                this.shpPath=shpPath;
10
        }
11
        public boolean accept(File pathname) {
12
                String strend=pathname.getAbsolutePath();
13
                strend=strend.substring(0,strend.length()-3);
14
                String strshp=shpPath.substring(0, shpPath.length() - 3);
15
                if (strend.equals(strshp)) {
16
                        return true;
17
                }
18
                return false;
19
        }
20

    
21
}