|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmk.fsgrep.find.TextFileFilter
public class TextFileFilter
Determine whether the given file is a text file, and accept it if it is. This is done by reading the first 8 bytes of the file and seeing if they are valid text characters by checking if they fall withing the range [1, 255]. This only works for single-byte character sets.
| Constructor Summary | |
|---|---|
TextFileFilter()
|
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextFileFilter()
| Method Detail |
|---|
public boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||