org.exist.client
Class MimeTypeFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.exist.client.MimeTypeFileFilter

public class MimeTypeFileFilter
extends FileFilter

A FileFilter that filters for files based on their extension Uses the filename extensions defined in mime-types.xml Java 6 API has a similar FileNameExtensionFilter


Constructor Summary
MimeTypeFileFilter(String mimeType)
           
 
Method Summary
 boolean accept(File file)
           
 String getDescription()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeTypeFileFilter

public MimeTypeFileFilter(String mimeType)
Method Detail

accept

public boolean accept(File file)
Specified by:
accept in class FileFilter

getDescription

public String getDescription()
Specified by:
getDescription in class FileFilter


Copyright (C) Wolfgang Meier. All rights reserved.