uk.co.caprica.vlcj.filter
Class ExtensionFileFilter

java.lang.Object
  extended by uk.co.caprica.vlcj.filter.ExtensionFileFilter
All Implemented Interfaces:
java.io.FileFilter
Direct Known Subclasses:
AudioFileFilter, PlayListFileFilter, SubTitleFileFilter, VideoFileFilter

public abstract class ExtensionFileFilter
extends java.lang.Object
implements java.io.FileFilter

Base implementation for file filters that are based on file name extensions.


Constructor Summary
protected ExtensionFileFilter(java.lang.String[] extensions)
          Create a new file filter.
 
Method Summary
 boolean accept(java.io.File pathname)
           
 java.lang.String[] getExtensions()
          Get the recognised file extensions.
 java.util.Set<java.lang.String> getExtensionSet()
          Get the set of recognised file extensions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionFileFilter

protected ExtensionFileFilter(java.lang.String[] extensions)
Create a new file filter.

Parameters:
extensions - file extensions to accept
Method Detail

getExtensions

public java.lang.String[] getExtensions()
Get the recognised file extensions.

A sorted copy of the array of file extensions is returned.

Returns:
file extensions accepted by the filter

getExtensionSet

public java.util.Set<java.lang.String> getExtensionSet()
Get the set of recognised file extensions.

A new (copy) sorted set of file extensions is returned.

Returns:
set of file extensions accepted by the filter

accept

public boolean accept(java.io.File pathname)
Specified by:
accept in interface java.io.FileFilter

(C)2010 Caprica Software Limited