|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.io.ExtensionFileNameFilter
public final class ExtensionFileNameFilter
File name filter for XML files (singleton class).
| Constructor Summary | |
|---|---|
ExtensionFileNameFilter(java.lang.String extension)
Private constructor. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
The method implements the accept method for the FilenameFilter interface, and implements the functionality for comparison of the desired filename to a .xml extension. |
static ExtensionFileNameFilter |
getXmlInstance()
Gets the singleton instance of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtensionFileNameFilter(java.lang.String extension)
extension - Extension to check for; leading '.' will be prepended if not present.| Method Detail |
|---|
public static ExtensionFileNameFilter getXmlInstance()
public boolean accept(java.io.File dir,
java.lang.String name)
accept in interface java.io.FilenameFilterdir - Directory in which the file is to be foundname - The file name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||