1 16 package org.apache.commons.vfs; 17 18 23 public class FileTypeSelector 24 implements FileSelector 25 { 26 private final FileType type; 27 28 public FileTypeSelector(final FileType type) 29 { 30 this.type = type; 31 } 32 33 36 public boolean includeFile(final FileSelectInfo fileInfo) 37 throws FileSystemException 38 { 39 return (fileInfo.getFile().getType() == type); 40 } 41 42 45 public boolean traverseDescendents(final FileSelectInfo fileInfo) 46 { 47 return true; 48 } 49 } 50 | Popular Tags |