title: in java using asterisk and question marks to match the name of a file
body: <p>I want to write in java something like this: </p>
  
  <pre><code>public class MyMatcher 
  {
     public static boolean isMatching(String filename, String param) { 
        ...
     }
  }
  </code></pre>
  
  <p>filename would be the name of a file without the directory 
  (e.g.: readme.txt, shares.csv, a nice song.mp3, ...)</p>
  
  <p>param would be something like "*.mp3" to say all of the files ending with .mp3 and so on.</p>
  
  <p>Note: param is not regular expression statement is more like the usual way of searching files like on textpad or eclipse or even the dos dir. </p>
  
  <p>Can somebody suggest either how to do this or if there is some opensource library to do this ? </p>