net.sourceforge.pavlov.zipUtilities
Class XMLFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.sourceforge.pavlov.zipUtilities.ZipCapableFileFilter
          extended by net.sourceforge.pavlov.zipUtilities.XMLFileFilter
All Implemented Interfaces:
FileFilter

public class XMLFileFilter
extends ZipCapableFileFilter
implements FileFilter

A FileFilter that accepts only XML files.


Constructor Summary
XMLFileFilter()
           
 
Method Summary
 boolean accept(File f)
          Returns true if f is a HTML file.
 boolean accept(ZipEntry f)
          Returns true if f is a JPEG file.
protected  boolean checkName(String name)
          Determines if name represents a JPEG file/entry name.
 String getDescription()
          Returns description of this file filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFileFilter

public XMLFileFilter()
Method Detail

accept

public boolean accept(File f)
Returns true if f is a HTML file.

Specified by:
accept in interface FileFilter
Specified by:
accept in class FileFilter
Parameters:
f - a File value
Returns:
a boolean value

accept

public boolean accept(ZipEntry f)
Returns true if f is a JPEG file.

Specified by:
accept in class ZipCapableFileFilter
Parameters:
f - a ZipEntry value
Returns:
a boolean value

checkName

protected boolean checkName(String name)
Determines if name represents a JPEG file/entry name.

Parameters:
name - a String value
Returns:
a boolean value

getDescription

public String getDescription()
Returns description of this file filter.

Specified by:
getDescription in class FileFilter
Returns:
a String value