VRJConfig UI API
v2.0


org.vrjuggler.vrjconfig.commoneditors
Class SerialPortChooser.MatchFilter

java.lang.Object
  extended by org.vrjuggler.vrjconfig.commoneditors.SerialPortChooser.MatchFilter
All Implemented Interfaces:
FileFilter
Enclosing class:
SerialPortChooser

public static class SerialPortChooser.MatchFilter
extends Object
implements FileFilter

A simple java.io.FileFilter implementation that uses regular expressions to filter java.io.File objects.


Constructor Summary
SerialPortChooser.MatchFilter(String devRegExp)
          Constructs a new MatchFilter that will use the given regular expression for matching against java.io.File objects.
 
Method Summary
 boolean accept(File pathname)
          Performs a regular expression match using the String returned by calling the getPath() object on the given File object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialPortChooser.MatchFilter

public SerialPortChooser.MatchFilter(String devRegExp)
Constructs a new MatchFilter that will use the given regular expression for matching against java.io.File objects.

Parameters:
devRegExp - The regular expression that will be used for matching against java.io.File objects.
See Also:
accept(java.io.File)
Method Detail

accept

public boolean accept(File pathname)
Performs a regular expression match using the String returned by calling the getPath() object on the given File object.

Specified by:
accept in interface FileFilter

VRJConfig UI API
v2.0


Copyright © 1998–2005 Iowa State University. All rights reserved.