com.huguesjohnson.hapsby
Class SaveDefFilter

java.lang.Object
  extended by com.huguesjohnson.hapsby.SaveDefFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class SaveDefFilter
extends java.lang.Object
implements java.io.FilenameFilter

Filter for Hapsby save game definition files (.hsd.xml).

Author:
Hugues Johnson

Field Summary
static java.lang.String EXTENTION
          Extention of Hapsby save game definitions.
 
Constructor Summary
SaveDefFilter()
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Tests if a file is a valid save game definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXTENTION

public static final java.lang.String EXTENTION
Extention of Hapsby save game definitions.

See Also:
Constant Field Values
Constructor Detail

SaveDefFilter

public SaveDefFilter()
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Tests if a file is a valid save game definition.

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - Not used but required to implement FilenameFilter.
name - The file name to check.
Returns:
True if the name parameter matches EXTENTION.


Copyright © 2000-2009 Hugues Johnson