Package railo.commons.io.res.util

Examples of railo.commons.io.res.util.WildCardFilter


   * @throws PageException
  **/
  public void setFilter(String pattern) throws PageException  {
      if(pattern.trim().length()>0) {
            try {
              this.filter=new WildCardFilter(pattern);
            }
            catch (MalformedPatternException e) {
                throw Caster.toPageException(e);
            }
        }
View Full Code Here



  private WildCardFilter filter;

  public QueryCacheFilterImpl(String wildcard, boolean ignoreCase)throws MalformedPatternException {
    filter=new WildCardFilter(wildcard,ignoreCase);
  }
View Full Code Here

 
  public synchronized List<String> get(String wildcard) throws MalformedPatternException, IOException {
    synchronized (data) {
      List<String> list=new ArrayList<String>();
      Iterator<Entry<String, String>> it = data.entrySet().iterator();
      WildCardFilter filter=new WildCardFilter( wildcard);
      Entry<String, String> entry;
      String value;
      while(it.hasNext()) {
        entry = it.next();
        value= entry.getValue();
        if(filter.accept(value)){
          list.add(entry.getKey());
          it.remove();
        }
      }
      if(list.size()>0)JavaConverter.serialize(data, file);
View Full Code Here

TOP

Related Classes of railo.commons.io.res.util.WildCardFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.