title: How can I easily (in java) generate file names from a mask string?
body: <p>I want to generate file names from a mask in Java. </p>
  
  <p>Something like 'Data-12-08-29-xxx.xml' from a mask like 'Data-${YY}-${MM}-${DD}-${var1}.xml'. I dont want to generate random file names, instead the file names would built according to a pattern provided at runtime.</p>
  
  <p>I can imagine just what I need to create a nice, generic class that will handle this for all manner of cases, but I dont want to reinvent the wheel, if something exists out there that I can re-purpose and perhaps extend.</p>
  
  <p>Any suggestions?</p>