Package org.beangle.webapp.avatar.model

Examples of org.beangle.webapp.avatar.model.FileAvatar


  }

  public Avatar getAvatar(String name) {
    if (StringUtils.contains(name, '.')) {
      File file = new File(avatarDir + name);
      if (file.exists()) { return new FileAvatar(file); }
    } else {
      for (int i = 0; i < typeList.size(); i++) {
        StringBuilder sb = new StringBuilder(avatarDir);
        sb.append(name).append('.').append(typeList.get(i));
        File file = new File(sb.toString());
        if (file.exists()) { return new FileAvatar(file); }
      }
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.beangle.webapp.avatar.model.FileAvatar

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.