1 6 7 package com.lutris.appserver.server.httpPresentation.servlet; 8 9 import java.io.File ; 10 import java.io.FileFilter ; 11 12 public class ArchiveFilter implements FileFilter { 13 14 public ArchiveFilter() { 15 } 16 17 public boolean accept(File pathname) { 18 19 boolean accepted = false; 20 if (pathname.isFile()) { 21 if (pathname.getName().endsWith(".jar") 22 || pathname.getName().endsWith(".zip") ) { 23 accepted = true; 24 } 25 } 26 return accepted; 27 } 28 29 } 30 | Popular Tags |